/    Sign up×
Community /Pin to ProfileBookmark

Page in an iframe launching a new page in same iframe

Hello all,

Hopefully someone can help…. I have a page that contains an iframe. Depending upon which option is selected from a menu, a certain page is loaded into the iframe. One page contains a series of check boxes contained in a form, and when submit is pressed javascript generates a url. I’ve tested it and it produces the correct url (pointing to another page) but what I want is for this page to be loaded inside this iframe.

Read somewhere to try parent.frames[‘iframe_name’].location=url, but that doesn’t seem to work or I’m simply not calling it correctly.

Any assistance will be most appreciated!

Clive.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterMay 18.2005 — All you gotta do is provide a target for the FORM.

<i>
</i>&lt;form [color=royalblue]target="my_frame"[/color] action="http://www.yahoo.com"&gt;
&lt;input type="submit"&gt;
&lt;/form&gt;
&lt;iframe [color=royalblue]name="my_frame"[/color]&gt;&lt;/iframe&gt;
×

Success!

Help @clive73 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...