动态更改最低帧
我有一个包含 3 个框架的页面,顶部、中间和底部,每个框架中显示不同的页面。当我单击中间框架上的按钮时,我想更改第三框架。
主页:
<html>
<frameset rows="475,6%,*">
<frame name="top" scrolling="no" noresize target="middle" src="top.htm">
<frame name="middle" src="middle.htm" scrolling="no" noresize>
<frame name="bottom" src="bottom.htm" scrolling="no" noresize>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
我要做的是在 middle.htm 页面中设置一个按钮,这样当单击它时,底部框架现在将显示不同的页面。
知道如何设置吗?
TIA
BR
I have a page with 3 frames, top, middle, and bottom that display a different page in each frame. I'd like to change what is third frame when I click a button on the middle frame.
Main Page:
<html>
<frameset rows="475,6%,*">
<frame name="top" scrolling="no" noresize target="middle" src="top.htm">
<frame name="middle" src="middle.htm" scrolling="no" noresize>
<frame name="bottom" src="bottom.htm" scrolling="no" noresize>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
What I'd to do is setup a button in the middle.htm page so that when it is clicked the bottom frame will now display a different page.
Any idea how to set this up?
TIA
BR
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试
top.document.getElementsByName( "bottom" )[ 0 ].src = "YOUR_NEW_PAGE"
Try
top.document.getElementsByName( "bottom" )[ 0 ].src = "YOUR_NEW_PAGE"
我不建议使用框架,但你可以尝试这个:
I do not recommend using frames, but you can try this: