What are Mouse Event Attributes in HTML
In this article we will discuss about what are the Mouse Event attributes in HTML.
There are some standard Mouse events which occur when some kind of actions are performed on the mouse like when we click or double click the mouse button or when we release the mouse button etc. These kinds of mouse events are not valid for some kind of elements present in the HTML and these are title, style, script, param, meta, iframe, html, head, frame, frameset, br, bdo, base.
Mouse event Attributes:
Event attribute |
Value |
Explanation |
onmouseup |
Script |
When the mouse button is released a Script will be run. |
onmouseover |
Script |
When the mouse pointer moves over an element a script will be run. |
onmouseout |
Script |
When the mouse pointer moves out an element a script will be run. |
onmousemove |
Script |
When mouse pointer moves a script will be run. |
onmousedown |
Script |
When mouse button is pressed a script will be run. |
ondblclick |
Script |
On a mouse double click a script will be run. |
onclick |
Script |
On a mouse click a script will be run. |
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here