GlobalEventHandlers.onmouseenter

翻译正在进行中。

GlobalEventHandlersonmouseenter 属性绑定 EventHandler 后来处理mouseenter 事件.
 

元素绑定了监听事件后,当一个指针设备(通常是鼠标)移动到这个元素上时mouseenter事件将会被触发。

语法

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

handlerFunction 可以是 null 或者一个用于处理事件的JavaScript 函数 。

规格

规格 状态 注释
HTML Living Standard
onmouseenter
Living Standard  

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 30Edge Full support YesFirefox Full support 10IE Full support 5.5Opera Full support 17Safari Full support YesWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 10Opera Android Full support 17Safari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support

同样可看

文档标签和贡献者

此页面的贡献者: mdnwebdocs-bot, DFFZMXJ, bedreamer
最后编辑者: mdnwebdocs-bot,