We would like to know how to check which event fire fire first.
<!DOCTYPE html>
<html>
<body>
<input
onblur="document.getElementById('msg').innerHTML+=new Date().getTime()+' - blur<br/>'">
<button
onmousedown="document.getElementById('msg').innerHTML+=new Date().getTime()+' - md<br/>'">a</button>
<div id="msg">
<br />
</div><!-- w ww . ja v a 2 s . co m-->
</body>
</html>
The code above is rendered as follows: