title: click a href link automatically on page load depending on hash location
body: <p>I have this code in HTML/JS:</p>
  
  <pre><code>&lt;a href="#customer_tickets" class="tabLink" onclick="LoadPage('/customer/editcustomer_tickets.php?customer=&lt;?php echo $customer["sequence"]; ?&gt;', '.EditCustomer');"&gt;Tickets&lt;/a&gt;
  
  if(location.hash) {
          //load the set hash here
  }
  </code></pre>
  
  <p>when the a href is clicked, it runs the LoadPage function in JS to load a page into a div</p>
  
  <p>when they are clicked it sets the hash location in the URL of the browser</p>
  
  <p>i want to be able to check if the hash location is set when the page loads and if it is, then to click the correct a href automatically</p>
  
  <p>how can i do this?</p>