1. Use attachEvent to add the functions that need to be run to onload
if (document.all)
{
window.attachEvent('onload', FuncName)
}
else
{
window.addEventListener('load ', FuncName, false);
}
2. Use window.onload = function(){FuncName1(); FuncName();} to directly onload the two functions. You can add a judgment,
var o = window.onload;
if ((typeof o)=='function')
window.onload = function(){o(); FuncName();}
else
window.onload = FuncName;