/    Sign up×
Community /Pin to ProfileBookmark

How to force links to my pages to open in a frameset (not cover whole screen)?

I have a frameset with two frames called left and right. The left frame should always contain a hierarchical menu and the right frame will contain the real content.

The problem is that when someone links externally (not from my own URLs) to one of my URLs (my content) this link will open and cover the whole screen and not only the right frame in the frameset as supposed. I want the whole frameset to open with the content in the right frame and the menu in the left frame when an external link is clicked. Otherwise a visitor will not be able to choose from the menu alternatives that I have.

Is there anyway I can force this to happen?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@KDLASep 27.2005 — The only way to do that is to provide them with a link to your frameset, rather than having them add you to their favorites or right-click to save your address. You can do this by setting up with a javascript button:

<script LANGUAGE="JavaScript">

<!-- Begin

function addbookmark()

{

bookmarkurl="http://file.htm"

bookmarktitle="Page Title"

if (document.all)

window.external.AddFavorite(bookmarkurl,bookmarktitle)

}

// End -->

</script>

The bookmark url needs to be the frameset document.

Then the link:

<a href="javascript:addbookmark()">Bookmark this</a>

You might reconsider the usage of frames - they're not user-friendly.

KDLA
×

Success!

Help @Pelle 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...