87,997
社区成员




<html>
<script>
function test()
{
for(i=0;i<parent.frames.length;i++)
{
parent.frames[i].location="about:blank";
}
parent.frames[0].location="a.htm";
}
</script>
<body onload="test()">
<iframe src="a.htm" width="100" heigth="100">
<iframe src="b.htm" width="100" heigth="100">
</body>
</html>
<html>
<script>
function test()
{
for(i=0;i<window.frames.length;i++)
{
window.frames[i].location="about:blank";
}
window.frames[0].location="a.htm";
}
</script>
<body onload="test()">
<iframe src="a.htm" width="100" heigth="100">
<iframe src="b.htm" width="100" heigth="100">
</body>
</html>