开发者

Javascript event execution order

What is the exec开发者_运维技巧ution order of inline events, attachEvent handlers, and an <a> tag's href navigation?


The execution order of individual event handlers is undefined.

If none of the event handlers called e.preventDefault(), and if onclick didn't return false, a navigation will occur.


Try it yourself: http://jsfiddle.net/rhJ2f/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜