Referencia mousePressed()

mousePressed()

Calls a function when the mouse is pressed over the element.

Calling myElement.mousePressed(false) disables the function.

Note: Some mobile browsers may also trigger this event when the element receives a quick tap.

Ejemplos

Sintaxis

mousePressed(fxn)

Parámetros

fxn
Function|Boolean: function to call when the mouse is pressed over the element. false disables the function.

Referencias Relacionadas