1、window.event

IE:有window.event对象
FF:没有window.event对象。可以通过给函数的参数传递event对象。
如:
实现代码如下:

<input type="button" onmousemove="showDiv(event);"//event不需要加引号
function showDiv(event)
{
var event=window.event||event;
event.clientX;
event.clientY;
}

以上就是【Js event事件在IE、FF兼容性问题】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)

与本文相关的软件

发表我的评论

最新评论

  1. 暂无评论