[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Forms controlling other frames

I have a web page which has 2 frames

in fact one is an iframe on a page.

On the main page there is a form and a submit button, can i make the submit button change the page in the iframe?
0
Matthew Tandy
Asked:
Matthew Tandy
1 Solution
 
COBOLdinosaurCommented:
Sure:

<input type="submit" onclick="top.frames['nameofframe'].location.href='newpage.htm'">

Cd&
0
 
prsupriyaCommented:
Hello...

In the main page form tag write the target as iframe name and give the action filename.

Example:

<form name="frm1" action="test.html" method="post" target="Ifrm">
 <input type="submit" name="submit" value="submit">
</form>
 
<iframe src="test2.html" name="Ifrm">

</iframe>

Hope this helps...
S:
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now