mousedown
This page has been flagged with the following issues:
High-level issues:
Overview Table
| Synchronous | No |
|---|---|
| Bubbles | No |
| Target | dom/Element |
| Cancelable | No |
| Default action |
Examples
View live exampleThis example shows how to determine the origin of the onmousedown event when event bubbling is used.
<BODY onmousedown="console.log(event.srcElement.tagName)"> <TABLE BORDER=1> <TH>Click the items below with your mouse.</TH> <TR><TD><BUTTON>Click Me</BUTTON></TD></TR> <TR><TD><INPUT TYPE=text VALUE="Click Me"></TD></TR> <TR><TD><SPAN>Click Me</SPAN></TD></TR> </TABLE> <P>This code retrieves the tagName of the object on which the onmousedown event has fired. </BODY>
Notes
Remarks
Use the button property to determine which mouse button is clicked. Initiates actions associated with the event and with the object being clicked. To invoke this event, do one of the following:
- Click a mouse button.
Syntax
Standards information
- HTML 4.01 Specification, Section 18.2.3
Event handler parameters
- pEvtObj [in]
- Type: IHTMLEventObj
See also
Related pages (MSDN)
aabbracronymaddressappletareaaudiobbdobigblockQuotebodybuttoncanvascaptioncentercitecodecustomdddeldfndirdivdldocumentdtemembedfieldSetfontformhnhriimginput type=buttoninput type=checkboxinput type=fileinput type=imageinput type=passwordinput type=radioinput type=resetinput type=submitinput type=textinskbdlabellegendlilistingmapmarqueemenunoBRobjectolpplainTextpreqrtrubyssampselectsmallsourcespanstrikestrongsubsuptabletBodytdtextAreatFootthtHeadtrttuulvarvideowindowxmpSVGSVGElementReferenceonmousewheelonmousemoveonmouseoutonmouseoveronmouseuponmspointerdown
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here