Availability: |
| |||||||
Property/method value type: | Boolean primitive | |||||||
JavaScript syntax: | - | myObject.onmousedown = aHandler | ||||||
HTML syntax: | <A onMouseDown="..."> <AREA onMouseDown="..."> <BODY onMouseDown="..."> <HTMLTag onMouseDown="..."> <IMG onMouseDown="..."> <INPUT onMouseDown="..."> | |||||||
Argument list: | aHandler | A reference to a function object to handle the event |
As the mouse button is pressed down, this event is triggered. If you return the value true, the event will be passed to the browser for further processing. Returning false inhibits this action and discards the message.
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.
DOM level 2 classifies this as a MouseEvent and specifies that it uses bubbling propagation and can be canceled.
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
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
Prev | Home | Next |
onLoseCapture | Up | onMouseDrag |
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. |