Press down the left mouse button over a <div> element to insert some text:
The mousedown event occurs when the left mouse button is pressed down over the selected element.
The mousedown() method triggers the mousedown event, or attaches a function to run when a mousedown event occurs.
Tip: This method is often used together with the mouseup() method.
Trigger the mousedown event for the selected elements:
Attach a function to the mousedown event:
|function||Optional. Specifies the function to run when the mousedown event is triggered|
Your message has been sent to W3Schools.