开发者

Javascript event execution order

开发者 https://www.devze.com 2023-01-01 01:21 出处:网络
What is the exec开发者_运维技巧ution order of inline events, attachEvent handlers, and an <a> tag\'s hrefnavigation?The execution order of individual event handlers is undefined.

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

精彩评论

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