Traditionally, to call a JavaScript function once the page has loaded, you\'d add an onload attribute to the body containing a bit of JavaScript (usually only c
Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply
The typical options is using the onload event:
....
You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.
...
And, another options, is to consider using a JS framework which intrinsically does this:
// jQuery
$(document).ready( function () {
SomeFunction();
});