Thank you for the suggestion. This is also what is discussed in some stackoverflow threads on that topic.
I simply do not get why javascript is required to stop the browser from interfering with user actions.
Calling preventDefault also messes with element focus and other events.