Availability: |
| |||||||
Property/method value type: | Boolean primitive | |||||||
JavaScript syntax: | - | myObject.ondblclick = aHandler | ||||||
HTML syntax: | <A onDblClick="..."> <AREA onDblClick="..."> <BODY onDblClick="..."> <HTMLTag onDblClick="..."> <IMG onDblClick="..."> <INPUT onDblClick="..."> | |||||||
Argument list: | aHandler | A reference to a function object to handle the event | ||||||
Supported by objects: | A, ACRONYM, ADDRESS, Anchor, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, Checkbox, CITE, CODE, DD, DEL, DFN, DIR, DIV, DL, Document, DT, EM, FIELDSET, FileUpload, FONT, FORM, H1, HR, I, IMG, Input, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, P, Password, PLAINTEXT, PRE, Q, RadioButton, ResetButton, S, SAMP, Select, SMALL, SPAN, STRIKE, STRONG, SUB, SubmitButton, SUP, TABLE, TBODY, TD, TEXTAREA, TextCell, TFOOT, TH, THEAD, TR, TT, U, UL, Url, VAR |
This event is generated when the user clicks on the receiving object twice.
Netscape indicates which mouse button was pressed in the which property of the event object that is passed as an argument to the event handler function. MSIE makes the value available in the button property of the Event object referenced by the window.event property.
This is not supported by Netscape 4.0 on Unix or Macintosh platforms.
An onDblClick event will also trigger onMouseDown and onMouseUp events. There will also be a possibility of onClick event triggering in some implementations, although a single click and double click should be distinguishable from one another. There is no guarantee that the onDblClick will arrive after the second onMouseUp although that is the logical order.
Prev | Home | Next |
onDataSetComplete | Up | onDocumentReady |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |