<HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY οnlοad="alert('load')" οnclick="alert('click');"> <SCRIPT LANGUAGE="JavaScript"> <!-- alert(window.onload) alert(document.body.onload) window.onload = function(){alert("改写后的onload");} //--> </SCRIPT> <SCRIPT LANGUAGE="JavaScript"> <!-- window.attachEvent("onload", function(){alert('继承onload');}) //--> </SCRIPT> </BODY> </HTML>