Alternatives to window.onload <p>Is there a different option than <code>window.onload=function;</code> or <code>&lt;body onload="function();"&gt;</code> to call a function after the page loads. </p> <p>I have a script found on the net satisfies my needs, but it overrides <code>window.onload</code>, so this prevents me from using the native <code>window.onload</code>. </p> <p>Are there any alternatives?</p>