August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.MOUSEDOWN
The MOUSEDOWN property of the Event object is used by button objects, documents, and links to indicate when the mouse button is pressed by the user.
Listing 7.229 shows how to use the MOUSEDOWN property to determine when the mouse has been pressed down. The onMouseDown event handler is used to catch the MOUSEDOWN event. When it is caught, an alert box is used to inform the user that the event has just occurred.
<html> <head> <title>Using Event.MOUSEDOWN</title> </head> <body> <script language = "JavaScript"> <!--Hide // sets up the window to capture MOUSEDOWN events window.captureEvents(Event.MOUSEDOWN); ... |
Read now
Unlock full access