.mousedown() Event

Syntax

.mousedown(handler(eventObject))

Description

The .mousedown event is used to perform a handler function when the mouse pointer is pressed and not released from the element. Function will be performed without the pointer release from element. The below example shows how to change the style of an element when the mouse down event is triggered.

Example Code

Result:


Press and Hold to Mouse Down.


Ask Questions

Ask Question