title: jquery javascript: adding browser history back with hashtag?
body: <p>I have a link on my website that says "Fullscreen Google Map". Once I click it, I load a google map into a 100% wide and 100% high position fixed <code>div</code> container. When the link is clicked, I also add a #map as hash.</p>
  
  <p>Is it possible to make the browser back button work with that? That is, if I click this link, I add #map to my current address. Once I click the back button, the #map hash is removed and the <code>div</code> container with the google map is removed or hidden.</p>
  
  <p>Is that somehow possible?</p>
  
  <p>edit:</p>
  
  <pre><code>$('.showMapLink').live('click', function() {
  
      $('#mapContainer').fadeIn('fast', function () {
          loadMap("mapContainer");
  
          top.location.hash = "map";
          $(window).bind( 'hashchange', function( event ) {
              $('#mapContainer').fadeOut('fast', function () {
                  $(this).children().remove();
              })
          });
  
      });
  
  });
  </code></pre>