user3423407
user3423407

Reputation: 341

How to change URL of browser window from within frameset frame?

I have an html document using frames. This is the code:

<frameset cols="10%,*" border="0">
<frame src="left_page.html">
<frameset rows="50%,50%" border="0">
</frameset>
</frameset>

Then in left_page.html, this is my code:

<form action="http:www.google.com">
<input type="submit" value="GotoGoogle" />
</form>

The problem is, when I click the button, it loads google.com in the left frame, not the entire screen. How can I get the web page to display on the entire screen and not just the left side frame?

Upvotes: 2

Views: 317

Answers (1)

Varty
Varty

Reputation: 363

You need to specify the target frame (_top is the full page)

<form action="http:www.google.com" target="_top">
<input type="submit" value="GotoGoogle" />
</form>

Upvotes: 5

Related Questions