faqts : Computers : Programming : Languages : JavaScript : Event handling

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 42 people (33%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How can I can capture a double click mouse event ?

Nov 21st, 2004 16:47
Alexander Amelkin, Jami Breese, http://www.webreference.com/js/column10/newmouseevents.html


The double-click event can be captured by installing an 'ondblclick' 
handler like this:
<div ondblclick="alert('Hey! Why did you double click my DIV!?')">
DON'T CLICK HERE!
</div>