I want to change the standard browser behavior in a web app where a mousedown click would cause the click action to happen before the button is released. I want this for all the hyperlinks in an app.
Is there a simple way to accomplish this in jQuery?
I am not looking for a solution to change every link individually. It should be a global event handler which works in current and future links.
Example:
in Yahoo Mail, as soon as you click on a tab, that tab gets focus. It happens before the button is released.
There’s a requirement to mimic this behavior for hyper links
If I’m understanding you correctly and you want to override the default link behavior, something like this should work:
Here’s a jsFiddle: http://jsfiddle.net/H2L4D/1/