我有一个使用框架的 html 文档。这是代码:
<frameset cols="10%,*" border="0">
<frame src="left_page.html">
<frameset rows="50%,50%" border="0">
</frameset>
</frameset>
然后在 left_page.html 中,这是我的代码:
<form action="http:www.google.com">
<input type="submit" value="GotoGoogle" />
</form>
问题是,当我单击按钮时,它会在左侧框架中加载 google.com,而不是整个屏幕。如何让网页显示在整个屏幕上而不仅仅是左侧框架上?
最佳答案
需要指定目标框架(_top为整页)
<form action="http:www.google.com" target="_top">
<input type="submit" value="GotoGoogle" />
</form>
关于html - 如何从框架集框架内更改浏览器窗口的 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54024818/