懂得放弃,才会有新的收获!

超链接里面的event事件

By weisnet On 2009-05-04 At 20:20 View:257
今天发现一个问题:
<a href='javascript:javaFunc(cc,this)'>链接名称</a>
<a href='#' onclick='javascript:javaFunc(cc,this)'>链接名称</a>
 
其中第一种写法 this 的event是不存在的 null。
但是第二种写法 this是有event事件的 (event只有在onclick,onmouseover,onmouseout才有值).
 
在第二种方法下,那些什么 event.x,event.clientX等的值才存在,第一种是不存在的。
·上一篇:关于 href='#' 跳动到顶部的问题!
·下一篇:firefox下使用insertAdjacentHTML,insertAdjacentText

for this post

 
 

Leave a Reply

赶快抢个沙发坐坐!
请先 登陆  还没帐号

Hot Posts Powered by weiseditor

  • Add to Google

Friend links