Link.onMouseDown

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

onMouseDown="command"

Description

The onMouseDown event handler of the Link object is used to handle the event when the mouse button is pressed down while the mouse pointer is over the link.

Example

Listing 7.369 shows how the onMouseDown event handler is used. The onMouseDown event handler is invoked any time the mouse button is pressed down while the cursor is on the link.

Listing 7.369 Example of the onMouseDown Event Handler
 <html> <head> <title> Using the onMouseDown event handler of the Link object</title> </head> <body> Click the mouse button while the cursor is on the link. <form name="form1"> <a href=http://www.mcp.com:80/foo?something#foobar onMouseDown='alert("The ...

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.