title: Automatically clicking a hyperlink on page load
body: <p>I have a hyperlink in my jsp.
  When we click on this, a popup overlay gets displayed and the background greys out. After closing the popup, the background becomes normal.
  Now I want the hyperlink to be clicked automatically when the page loads.
  Can anyone say how we can do that?</p>
  
  <p>I tried the following..</p>
  
  <pre><code>$('#ViewOutages').click(); , 
  $('#ViewOutages').click();
  </code></pre>
  
  <p>but none of it worked.. <code>ViewOutages</code> is the div id in which the hyperlink is present.</p>
  
  <p>Can someone please help on this.</p>