How do I add an additional window.onload event in Javascript
<p>In my asp.net User Control I'm adding some script to the window.onload event like so:</p>

<pre><code>if (!Page.ClientScript.IsStartupScriptRegistered(this.GetType(), onloadScriptName))
  Page.ClientScript.RegisterStartupScript(this.GetType(), onloadScriptName, 
    "window.onload = function() {myFunction();};", true);            
</code></pre>

<p>My problem is, if there is already something in the onload event, than this overwrites it. 
How would I go about allowing two user controls to each execute javascript in the onload event?</p>

<p>*<em>Edit:</em>*Thanks for the info on third party libraries. I'll keep them in mind. </p>
