document.onDblClick

JavaScript1.0+, JScript1.0+ Nav2+, IE3+ Syntax

document.onDblClick

Description

The onDblClick event handler specifies what should happen when the mouse is double-clicked within the Document object.

Example

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.

Listing 7.147 Handle the DblClick Event with the onDblClick Event Handler
 <html> <head> <script language="JavaScript1.2"> <!--Hide // Tell the browser you ...

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.