I have a asp.net button called update. I have to carry some test when the button is double clicked. But as of now, sometime it recognizes the double click and sometimes it doesnt. So i need to simulate double click when i click once.
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Double click for button is pretty much meaningless as each click will trigger it's onclick event. Safest way is build your own "double click" event using the ordinary onclick.. required JS:
And the HTML:
Test case: http://jsfiddle.net/yahavbr/HGJEG/ |
|||
|