title: Access pushState state object content
body: <pre><code>$(function(){
      $('button').click(function(e){
          e.preventDefault();
  
          var nextUrl = 'page1.html';
          var previousUrl = window.location.href;
  
          $.get(nextUrl, function(data){
              $('body').html(data);
              history.pushState({content: data}, '', nextUrl); &lt;--How to retrieve the content data
          });
      });
      $(window).bind('popstate', function(e){
          console.log(e.state.content);
          //How do I get the data stored in pushState?
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I have stored the entire page information in state <code>pushState({content:data}..</code>, but how do I retrieve it inside <code>popstate</code>? </p>
  
  <p>Thanks!</p>