title: How to change event execution order?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
   &lt;meta charset="utf-8"&gt;
   &lt;title&gt;Close window&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
   &lt;button id="abc" onclick="temp1()"&gt;button&lt;/button&gt;
  
  &lt;script type="text/javascript"&gt;
   function temp1() {
    alert("temp1");
   };
  
   function temp2() {
    alert("temp2");
   }
  
   document.getElementById("abc").addEventListener("click", temp2, false);
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>but I want to show "temp2" first, and then show "temp1"</p>
  
  <p>Is that possible? or the event execution order depends on the browser so I can't change it?</p>
  
  <p>thanks for help!!</p>