title: binding popstate event not working
body: <p>I have tried to type this code into the browser's console:</p>
  
  <pre><code>window.onpopstate = function() {alert(1);}
  </code></pre>
  
  <p>and then click the back button. No alert has shown.
  Am I doing something wrong? Or is it not allowed to bind popstate event to a page from console?</p>
  
  <p>Using Chrome 24 and Firefox 18</p>