Javascript Event Order

What is the execution order of inline events, attachEvent handlers, and <a> tag href navigation?

0
source share
2 answers

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

-1
source

The execution order of the individual event handlers is undefined.

If none of the event handlers called e.preventDefault() , and if onclick does not return false , navigation will occur.

+2
source

All Articles