I\'d like a short smallest possible javascript routine that when a mousedown occurs on a button it first responds just like a mouseclick and then if the user keeps the butto
something like the psuedo code below might work..
var isClicked = false; var clickCounter = 100; function fnTrackClick(){ if(isClicked){ clickCounter--; setTimeout(clickCounter * 100, fnTrackClick); } }