title: JavaScript checking for a specific hash
body: <pre><code>&lt;script type="text/javascript"&gt;
  if (location.href.indexOf("#") != -1) {
      // Your code in here accessing the string like this
      // location.href.substr(location.href.indexOf("#"))
      alert('hello');
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I found this script in another answer. Is there a way for me to use the </p>
  
  <pre><code>("#") != myParameter) 
  </code></pre>
  
  <p>So if the hash meets my parameter do something. </p>
  
  <p>Thank you.</p>