title: how to use window.location.hash?
body: <p>I don't really know the concept of hash but based on what I understand, It prevents a page from redirecting to other page when the user hits the F5 key.</p>
  
  <p>I have this jquery function:</p>
  
  <pre><code>$('#f1').click(function()
  {
      alert(window.location.hash);
      $("#body").load("sample.php");
  
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;a href = "#!sample" id = "f1"&gt;FUNC 1&lt;/a&gt;
  &lt;div id = "body"&gt;
  &lt;!-- OUTPUT HERE --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It successfully outputting the content of my sample.php, but when I hit the refresh button or F5 in the keyboard it redirected back to the parent page..</p>
  
  <p>I want that when I hit refresh the content of sample.php will remain in the body.</p>