I'm trying to find a way to execute a button function only if the user pressed/clicked on the button for 10 seconds.
the normal button function is:
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
so is there any way to count the seconds from the moment the user pressed on the button and KEPT pressing, (a continuous pressing without clicking not tapping), and when the seconds hits 10, the function will execute?