为什么我这个显示不正常
我已经发现问题了,谁能告诉我一下3楼的问题,谢谢大侠
<html>
<head>
<title>Chapter 8: Example 1</title>
</head>
<frameset row="50%,*" id = "topWindow">
<frame name="upperWindow" src="08_examp1_upper.html"/>
<frame name="lowerWindow" src="08_examp1_lower.html"/>
</frameset>
</html>
<html>
<head>
<title>Chapter 8: Example 1 Upper Frame</title>
<script type="text/javascript">
function window_onload()
{
alert("The name of the upper frame's window object is "+window.name);
alert("The location of upperWindow's parent is "+window.parent.location.href);
}
</script>
</head>
<body onload = "window_onload()">
<p>
Upper Frame
</p>
</body>
</html>
<html>
<head>
<title>Chapter 8: Example 1 Lower Frame</title>
<script type="text/javascript">
function window_onload()
{
alert("The name of the lower frame's window object is "+window.name);
alert("The location of lowerWindow's parent is "+window.parent.location.href);
}
</script>
</head>
<body onload = "window_onload()">
<p>
Lower Frame
</p>
</body>
</html>
我也不知道应该显示成什么样子
我想应该是打开一个父页面,会显示2个页面把,也就是页面会有2块,上面那块显示Upper Frame,下面那块显示Lower Frame
但是现在只显示了Upper Frame
而且2个字页面都写了JS,在IE下,值弹出了Upper Frame的提示,在chrome下,都谈了,但是感觉顺序不太对,顺序是Upper的第一句alert,lower的第一句语句,然后Upper第二句语句,lower第二句语句。
为什么会这样呀?没看出错在哪里,求哥哥姐姐指点错误在哪里?
<html>
<head>
<title>Chapter 8: Example 1</title>
</head>
<frameset row="50%,*" id = "topWindow">
<frame name="upperWindow" src="08_examp1_upper.html"/>
<frame name="lowerWindow" src="08_examp1_lower.html"/>
</frameset>
</html>
<html>
<head>
<title>Chapter 8: Example 1 Upper Frame</title>
<script type="text/javascript">
function window_onload()
{
alert("The name of the upper frame's window object is "+window.name);
alert("The location of upperWindow's parent is "+window.parent.location.href);
}
</script>
</head>
<body onload = "window_onload()">
<p>
Upper Frame
</p>
</body>
</html>
<html>
<head>
<title>Chapter 8: Example 1 Lower Frame</title>
<script type="text/javascript">
function window_onload()
{
alert("The name of the lower frame's window object is "+window.name);
alert("The location of lowerWindow's parent is "+window.parent.location.href);
}
</script>
</head>
<body onload = "window_onload()">
<p>
Lower Frame
</p>
</body>
</html>
我也不知道应该显示成什么样子
我想应该是打开一个父页面,会显示2个页面把,也就是页面会有2块,上面那块显示Upper Frame,下面那块显示Lower Frame
但是现在只显示了Upper Frame
而且2个字页面都写了JS,在IE下,值弹出了Upper Frame的提示,在chrome下,都谈了,但是感觉顺序不太对,顺序是Upper的第一句alert,lower的第一句语句,然后Upper第二句语句,lower第二句语句。
为什么会这样呀?没看出错在哪里,求哥哥姐姐指点错误在哪里?
...全文
相关推荐
电脑桌面图标显示不正常怎么办?快速恢复不正常图标的方法.docx
电脑桌面图标显示不正常怎么办?快速恢复不正常图标的方法.docx
office文档的图标显示不正常
office文档的图标显示不正常
解决Win7 下Office仿宋和楷体显示不正常问题
解决Win7 下Office2000,2003仿宋和楷体显示不正常问题
完美解决Python matplotlib绘图时汉字显示不正常的问题
今天小编就为大家分享一篇完美解决Python matplotlib绘图时汉字显示不正常的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
ASP网站显示不正常恢复
ASP网站显示不正常恢复


