title: DOM event precedence
body: <p>What order of precedence are events handled in JavaScript?</p>
  
  <p>Here are the events in alphabetical order...</p>
  
  <ol>
  <li>onabort - Loading of an image is
  interrupted</li>
  <li>onblur - An element loses focus</li>
  <li>onchange - The user changes the
  content of a field</li>
  <li>onclick - Mouse clicks an object</li>
  <li>ondblclick - Mouse double-clicks an
  object</li>
  <li>onerror - An error occurs when
  loading a document or an image</li>
  <li>onfocus - An element gets focus</li>
  <li>onkeydown - A keyboard key is
  pressed</li>
  <li>onkeypress - A keyboard key is
  pressed or held down</li>
  <li>onkeyup - A keyboard key is
   released</li>
  <li>onload - A page or an image is
   finished loading</li>
  <li>onmousedown - A mouse button is
   pressed</li>
  <li>onmousemove - The mouse is moved</li>
  <li>onmouseout - The mouse is moved off
   an element</li>
  <li>onmouseover - The mouse is moved
   over an element</li>
  <li>onmouseup - A mouse button is
   released</li>
  <li>onreset - The reset button is
   clicked</li>
  <li>onresize - A window or frame is
   resized</li>
  <li>onselect - Text is selected</li>
  <li>onsubmit - The submit button is
   clicked</li>
  <li>onunload - The user exits the page</li>
  </ol>
  
  <p>What order are they handled out of the event queue?</p>
  
  <p>The precedence is not first-in-first-out (FIFO) or so I believe.</p>