What is the execution order of inline events, attachEvent handlers, and <a> tag href navigation?
attachEvent
<a>
href
Try it for yourself: http://jsfiddle.net/rhJ2f/
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.
e.preventDefault()
onclick
return false