如何从框架集框架内更改浏览器窗口的URL



>我有一个使用框架的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>

最新更新