日期:2014-05-16 浏览次数:20449 次
<HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY onload="alert('load')" onclick="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>
?