title: jquery click event with reload
body: <p>I was wondering why this code: </p>
  
  <pre><code>$('.button').click(window.location.reload)
  </code></pre>
  
  <p>triggers illegal invocation</p>
  
  <p>And this code :</p>
  
  <pre><code>$('.button').click(function(){
      window.location.reload()
  })
  </code></pre>
  
  <p>works fine.</p>
  
  <p>I don't know the difference and why only the latter works?</p>