[HTML] 纯文本查看 复制代码
<html>
<head></head>
<body><div id="msg">状态:</div></body>
<script>
var msg = document.getElementById("msg");
var iframe = document.createElement("iframe");
iframe.onload = function(){ msg.innerHTML += "onload,"; }
document.body.appendChild(iframe);
iframe.src = "http://www.baidu.com" ;
</script>
</html>
[HTML] 纯文本查看 复制代码
<html>
<head></head>
<body><div id="msg">状态:</div></body>
<script>
var msg = document.getElementById("msg");
var iframe = document.createElement("iframe");
iframe.onload = function(){ msg.innerHTML += "onload,"; }
iframe.src = "http://www.baidu.com" ;
document.body.appendChild(iframe);
</script>
</html>