The onmousedown event occurs when the user clicks an object with either mouse button. This example uses a handler for the event that simply retrieves the tagName of the object on which the event has fired.
Click on the items below with your mouse pointer. |
---|
Click Me |
Because the handler is set at the BODY level, event bubbling captures the onmousedown events for all elements.
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.