日期:2014-05-16 浏览次数:20469 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> </HEAD> <BODY > <iframe id="if1" ></iframe> <SCRIPT LANGUAGE="JavaScript"> var test = function (){ alert(this.document.getElementById("span1").innerHTML); } var if1 = document.getElementById("if1"); if1.src = "Noname1.html" if1.contentWindow.window.onload = test; </SCRIPT> </BODY> </HTML>