/    Sign up×
Community /Pin to ProfileBookmark

Links to specific page inside a frameset

Is there a way to link to a specific page inside a frameset from outside that frameset?

Example:
Index.html contains the following frames:
<frameset rows=”30,*” framespacing=”0″ frameborder=”NO” border=”0″>
<frame src=”top.html” name=”topFrame” scrolling=”NO” noresize>
<frame src=”About.html” name=”mainFrame”>
</frameset>

Now, if I want to put a link from an external website to the above website but instead of loading About.html in the mainframe (the default) I want to link directly to let say Products.html in the mainframe.

Is it possible to load a frameset with pages other than the default pages from an external link (outside of the target frameset)?

Looking forward to your response
D Brink

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@Robert_WellockOct 27.2005 — Fragment Identifiers is what you need.
Copy linkTweet thisAlerts:
@djbrinkauthorOct 27.2005 — I know how to use fragment identifiers to refer to a section inside a page such as:

Products.html#new for instance. but this page is then either a frameless page or inside my current frameset.

but I do not know how to use them to refer to a specific page inside someone else's frameset other than the default pages.

THX

D Brink
Copy linkTweet thisAlerts:
@saeOct 27.2005 — Have you given thought to trying something like using a php URL GET command? Your address on your website would have to be something like:

www.WEBSITE.com/index.php?pageid=products.htm

Your page code would then have to be something like:

<?php

$pageid = isset($_GET['pageid']) ? $_GET['pageid'] : NULL;

?>

<frameset rows="30,*" framespacing="0" frameborder="NO" border="0">

<frame src="top.html" name="topFrame" scrolling="NO" noresize>

<frame src="<?php echo($pageid); ?>" name="mainFrame">

</frameset>

You would have to save this page as index.php and not index.html

The code I mentioned above will more than likely not work as I am a php newbie (if it does, I lucked out), but it should give you an idea.
Copy linkTweet thisAlerts:
@djbrinkauthorOct 28.2005 — I like your thinking.

Only problem is, the frameset to which I want to link does not belong to me, thus, I cannot legally make changes to their index file to suite my needs to link to a specific page other than their defaults.

I hope someone has another possibility.
×

Success!

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