关于iframe的问题,请大家进来看看
<html>
<head>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
</head>
<body>
<iframe src="GetDate.asp" width="400" height="300" name="abc"></iframe>
<INPUT type="button" value="Button" ID="Button1" NAME="Button1" onclick="aa()">
</body>
</html>
<script>
function aa(){
alert(window.frames("abc").document.body.innerText);
}
//window.frames("abc").location.href="GetDate.asp";//奇怪在如果在此得到iframe的内容,会提示缺少对象。按钮点击后正常。
</script>
大家帮帮忙,急求解决。。。。。因为需要在打开页面就得到iframe的内容