Mouse Event Attributes

title=text

Explanation

Mouse Event Attributes are the events which happens as a result of keys in a Mouse.
When the keys in Mouse are pressed and released by the user or the pointer is moved or else if the mouse wheel is rolled, then the events will be caused.
These events will function in all the HTML5 elements.
List of available attributes:
AttributeValueDescription
onclick Script When a button in mouse was clicked once, then the script will be executed.
ondblclick Script When mouse button was clicked twice then the script will be executed.
ondrag ScriptWhen text or any other thing in a page is dragged then the script will be executed.
ondragend Script When dragging was made to a certain extent then the script will be executed.
ondragenter Script When a text is dragged and placed in another area then the script will be executed.
ondragleave Script When the dragged portion moves back to its source then the script will be executed.
ondragover Script When text area has been dragged to a desired location then the script will be executed.
ondragstart Script When any portion in the currently opened page is dragged then the script will be executed.
ondrop Script When the dragged item is left out by the user then the script will be executed.
onmousedown Script If any button in mouse is pressed by the user then the script will be executed.
onmousemove Script Script will be executed when the mouse pointer is placed over a menu.
onmouseout Script When the mouse pointer is moved away from an menu then the script will be executed.
onmouseover Script When the mouse pointer is moved/hovered over an element then the script will be executed.
onmouseup Script When any button in the mouse is pressed and released then the script will be executed.
onmousewheel ScriptWhen the mouse wheel is rolled then the script will be executed.
onscroll Script If the scrollbar located in a page is rolled then the script will be executed.

Ask Questions

Ask Question