JavaScript Mouse Events

You are Here:

JavaScript Mouse Events

The following are the list of Mouse events available in JavaScript programming.

FunctionsExplanation
onclickOccurs when the user clicks on an element.
oncontextmenuOccurs when the user right-clicks on an element to open the context menu.
ondblclickOccurs when the user double clicks an element.
onmousedownOccurs when a user presses a mouse button over an element.
onmouseenterOccurs when the mouse pointer is entered onto an element.
onmouseleaveOccurs when the mouse pointer is left out of an element.
onmousemoveOccurs when the mouse pointer is moving while it is over an element.
onmouseoverOccurs when the mouse pointer is moved onto an element or one of its child elements.
onmouseoutOccurs when the mouse pointer is moved out of an element or one of its children.
onmouseupOccurs when a user releases a mouse button over an element.
onwheelOccurs when the mouse wheel is rolled up or down over an element.

Reminder

Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in JavaScript.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author