上一篇:如何获得文本输入框的位置 - 下一篇:Win32下OpenSSL的安装方法
2006-03
27
版权声明:可以任意转载,但转载时必须标明原作者charlee、原始链接http://tech.idv2.com/2006/03/27/about-dom-event-lifecycle/以及本声明。
DOM对象event仅在事件发生的期间内存在。因此下面这种写法是错误的:
<a href="javascript:alert(window.event.x)">
而应当写成
<a href="#" onclick="alert(window.event.x); return false">
添加评论
