title: Auto run Javascript on page load
body: <p>I'm trying to run a piece of JavaScript automatically when a page loads.
  The code itself simply pops up a link to our self service portal...</p>
  
  <pre><code>// Requires jQuery!
  jQuery.ajax({
      url: "selfserviceportal.com",
      type: "get",
      cache: true,
      dataType: "script"
  });
  </code></pre>
  
  <p>I've attempted using onload and onclick with no success.
  Any help much appreciated.</p>