title: Execute scripts related to anchor onload
body: <p>I have a couple of links anchored to hidden divs. These divs are hidden by setting the opacity to zero and I used jQuery to show these divs once I click on their respective anchor.</p>
  
  <p>What I want to know is is it possible to open these divs using jQuery by just putting the anchors in the url? For example:</p>
  
  <pre><code>&lt;a href="#div1"&gt;Link1&lt;/a&gt;
  &lt;a href="#div2"&gt;Link2&lt;/a&gt;
  &lt;a href="#div3"&gt;Link3&lt;/a&gt;
  
  &lt;div id="div1"&gt;Lorem Ipsum&lt;/div&gt;
  &lt;div id="div2"&gt;Vestibulum in sollicitudin&lt;/div&gt;
  &lt;div id="div3"&gt;Mauris auctor&lt;/div&gt;
  </code></pre>
  
  <p>The divs are initially hidden and only appears when the anchor is clicked. Now how do I open a certain div, say div2, onload by just adding the anchor at the end of the URL, like <code>http://example.com#div2</code></p>
  
  <p>Is it possible to do that?</p>