if (window.attachEvent) { window.attachEvent("onload", GetMyInfo);//IE } else { window.addEventListener("load", GetMyInfo, false);//FF }
function GetMyInfo()
{
alert("Hello World!");
}