-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Please See code below
<zk>
<window border="normal" title="hello">
<div>onClick and onDoubleClick Problem</div>
<a label="Double Click Me" onClick="alert(event)" onDoubleClick="alert(event)"/>
</window>
</zk>
When you double click on link, it will call 2 onClick events and one onDoubleClick event. But I expect only one onClick event on single click and only one onDoubleClick on when I do a double click. Any idea how to control it?
Hi, it is the default browser behavior. Check the sample on jsfiddle.
Asked: 2014-07-03 07:34:30 +0800
Seen: 12 times
Last updated: Jul 03 '14