August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.onDblClick
The onDblClick event handler specifies what should happen when the mouse is double-clicked within the Document object.
In Listing 7.147, the script in the <head> of the document specifies a function to handle all DblClick events in the document. To be able to do this, the document's captureEvents() method is used to capture all events of type Event.DBLCLICK. When the page itself is double-clicked, Document's event handler generates an alert box notifying the user of the event.
<html> <head> <script language="JavaScript1.2"> <!--Hide // Tell the browser you ... |
Read now
Unlock full access