title: location.reload in addEventListener
body: <p>I'm trying to make the document reload when a button is clicked. Here's my code:</p>
  
  <pre><code>var e = document.getElementById('a');
  e.addEventListener('click',location.reload);
  </code></pre>
  
  <p>It returns <code>Uncaught TypeError: Illegal Invocation</code> after <code>e</code> was clicked. However, the following code works and the document reloaded:</p>
  
  <pre><code>var e = document.getElementById('a');//same thing
  e.addEventListener('click',function(){location.reload()});
  //warp location.reload inside function -&gt; works!
  </code></pre>
  
  <p>I don't understand why the first code doesn't work. Can anyone give some explanation? Thanks!</p>