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/
加载中,请稍侯......
精彩评论