ie&firefox如何获取事件属性
时间:2008-08-18 来源:azany
ie通过window.event来访问事件
但firxfox不行,只能通过现场的event来访问
如下例:
<html>
<head>
</head>
<body>
<div style="background-color:#cccccc;width:100;align='center'">
<a href="#" onclick="showDiv(event);return false;">test</a>
</div>
<div style="position:absolute" id="floatDiv">
hellow world!
</div>
</body>
<html>
<head>
</head>
<body>
<div style="background-color:#cccccc;width:100;align='center'">
<a href="#" onclick="showDiv(event);return false;">test</a>
</div>
<div style="position:absolute" id="floatDiv">
hellow world!
</div>
</body>
<html>
相关阅读 更多 +