GlobalEventHandlers.onmouseenter

The onmouseenter property of the GlobalEventHandlers mixin is the event handler for processing mouseenter events.

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

Syntax

element.onmouseenter = handlerFunction;
var handlerFunction = element.onmouseenter;

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
onmouseenter
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/onmouseenter