function func(){
alert("success!!");
}
if(window.attachEvent) {
window.attachEvent("onload", func);
}else if(window.addEventListener) {
window.addEventListener("load",func, false);
}
function func(){
alert("success!!");
}
if(window.attachEvent) {
window.attachEvent("onload", func);
}else if(window.addEventListener) {
window.addEventListener("load",func, false);
}