<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<script language="javascript">
function getContent()
{
var url="http://www.google.com";
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET",url,true);
xmlhttp.send();
document.frames["myFrame"].location.href=url;
xmlhttp.onreadystatechange = function(){
if(xmlhttp.readyState == 4){
if (xmlhttp.status == 200){
alert("加载成功!");
}
else{
alert("加载失败!");
}
}
}
}
</script>
</head>
<body οnlοad="getContent()" >
<iframe name="myFrame" width="100%" height="0" src="default.htm"></iframe>
</body>
</html>Top
<iframe name="myFrame" width="100%" height="0" src="default.htm" onreadystatechange="if(document.frames['myFrame'].document.readyState!='complete')doityouwirte();"></iframe>