How can I know how long a user has been holding the mouse button down (anywhere on a webpage)? I want to execute a function when the user held the mouse button for at least 2-3 seconds (preferably cancelling the mouse down in the process). Is this possible?
Share
Here you go:
Live demo: http://jsfiddle.net/simevidas/Pe9sq/2/