/

HTML / CSS / JavaScript Tutorial

HTML Event attribute: onmouseleave

[this page | pdf | back links]

The HTML onmouseleave attribute specifies the event that is triggered when the mouse pointer moves onto an element. It applies to all visible elements. It is often used in conjunction with the onmouseenter event.

 

It is like the onmouseout event (or the onmousemove event), except that the onmouseleave event only fires when the mouse first leaves the element itself, whereas the onmouseout event also fires in response to the mouse moving out of the element into a child element that is located within the original element.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile