/    Sign up×
Community /Pin to ProfileBookmark

I give in – IFrames on new page

I’m sure this is simple for you guys, I’m just a script n00b and struggling with this.

I have a site with main navigation at the top and a subcategory navbar down the left as part of the main page. The links in the left hand navbar open pages in an inline frame to the right, each link has its own page that opens. This works fine and everything’s peachy.

However, sometimes I want to link to the page so that a certain page opens in the frame, as if it had been clicked in the left navbar. I know I’ll need some kind of Javascript or other script to do this, and it will involve an extension to the url of the link, for example

<a href=”mainpage.html?frame=001″>

But I can’t figure out the script that goes in the page being linked TO. ?

Any help is hugely appreciated.

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@HyperdeliciousMay 24.2005 — try <a href="web_page.html" target="frame001">Your Link</a>

keyword here is target... the target variable controls where the page is to load. I've never worked with IFrames -- but this seems pretty logical to me.
×

Success!

Help @Auan 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.18,
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,
)...