Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q929 How can I detect a mouse double-click event?

irt.org | Knowledge Base | JavaScript | Pointer | Q929 [ previous next ]

Q929 How can I detect a mouse double-click event?

In Netscape Navigator 4 and Internet Explorer 4 you can use the onDblClick event handler (although it is not supported in Netscape Navigator 4 on either Unix or Mac platforms) on the following items:

<body onDblClick="alert('Hello World')">

<a href="http://www.irt.org" onDblClick="alert('Hello World')">text link</a>

<img src="picture.gif" onDblClick="alert('Hello World')" width="50" height="50">

<form>
<input type="button" value="button" onDblClick="alert('Hello World')">
<input type="reset"  value="reset"  onDblClick="alert('Hello World')">
<input type="submit" value="submit" onDblClick="alert('Hello World')">
</form>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.