Jquery onclick event to change to onload
<p>I am using following code which works perfeet when i click on  Link1, what i want to do is it should automatically on pageload fire the event loadContent, how to do that ?</p>

<p></p>

<pre><code>&lt;head&gt;
&lt;title&gt;jQuery test page&lt;/title&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
function loadContent(elementSelector, sourceUrl) {
$(""+elementSelector+"").load("http://abc.com/"+sourceUrl+"");
}
  &lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;a href="javascript:loadContent('#content', 'displayimages.php');"&gt;Link 1&lt;/a&gt;
&lt;div id="content"&gt;content will be loaded here&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
