Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Pointer | Q929 [ previous next ]

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>

©2018 Martin Webb