레퍼런스 mouseClicked()

mouseClicked()

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

Calling myElement.mouseReleased(false) disables the function.

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

예제

구문

mouseClicked(fxn)

매개변수

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

관련 레퍼런스