Link.onDblClick

JavaScript 1.2+, JScript 1.0+ Nav4+, IE 3+ Syntax

onDblClick="command"

Description

The onDblClick event handler of the Link object is used to handle the event when the mouse cursor is double-clicked on the link.

Example

Listing 7.365 shows how to use the onDblClick event handler.

Listing 7.365 Example of the onDblClick Event Handler
<html>
<head>
<title> Using the onDblClick event handler of the Link object</title>
</head>
<body>

Click the link.
<form name="form1">
<a href=http://www.mcp.com:80/foo?something#foobar
onDblClick='alert("You double-clicked the link")'>
http://www.mcp.com:80/foo?something#foobar</a>
<br><br>
</form>

</body>
							
</html>
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.