GlobalEventHandlers.onmouseleave

The onmouseleave property of the GlobalEventHandlers mixin is the event handler for processing mouseleave events.

The mouseleave event is fired when a pointing device (usually a mouse) is moved off the element that has the listener attached.

Syntax

element.onmouseleave = handlerFunction;
var handlerFunction = element.onmouseleave;

handlerFunction is either null or a JavaScript function specifying the handler for the event.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
onmouseleave
30
12
10
5.5
17
7
4.4
30
10
18
7
2.0

See also

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onmouseleave