title: Refresh/Reload web page only once
body: <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
  
          //Check if the current URL contains '#' 
          if (document.URL.indexOf("#") == -1) {
              alert('dfjdkjfkdj');
              // Set the URL to whatever it was plus "#".
              url = document.URL + "#";
              location = "#";
  
              //Reload the page
              location.reload(true);
  
          }
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Above code is not working.
  What is the problem?</p>