js动态添加页面的BODY OnLoad事件的代码。
if (window.attachEvent) { window.attachEvent("onload", GetMyInfo);//IE } else { window.addEventListener("load", GetMyInfo, false);//FF }
function GetMyInfo()
{
alert("Hello World!");
}
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.