rlemon
10-28-2005, 10:41 PM
say i have the following element on my site
<img src="img.jpg" onClick="dothisfunction()" onDblClick="differentfunction()" />
Whenever i click on the image i receive the onClick function, this is regardless of the number of click and the speed in which i do it.
is there a way to have an element do something different between single click and double click?
*note, the double click function is called when i double click IF there is no single click attribute on the element.
<img src="img.jpg" onClick="dothisfunction()" onDblClick="differentfunction()" />
Whenever i click on the image i receive the onClick function, this is regardless of the number of click and the speed in which i do it.
is there a way to have an element do something different between single click and double click?
*note, the double click function is called when i double click IF there is no single click attribute on the element.