/    Sign up×
Community /Pin to ProfileBookmark

link target frame

hey folks.
i have a web page system which has an index.html with an iframe loaded inside. index.html has a javascript menu on the side which expands out when you put your mouse over it. it has a list of my sites that should load up in the iframe. (it’s like an exhibition of the sites which i have made).
index.html has this code:

[code]
<html>
<head>
…javascript menu code with links to my other sites…
</head>

<body>
<iframe name=iframe src=”http://www.mysite.com” width=100% height=100% marginwidth=0 marginheight=0>
</body>
</html>
[/code]

this works all well and nice. except one of my online websites uses a navigation bar with links that have

[code]target=”_top”[/code]

this just wipes out the iframe, and loads up the website over index.html, and you lose the navigation bar.
is there a way to set all _top targets to act as _parent…. or is there some way to stop the nav bar being wiped out?

many thank ?
ps. if this isn’t possible, please let me know, as i’ll stop trying!

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJan 19.2004 — Sure there is, get a better navigational system that doesn't use frames. Failing that get rid of your target="_top". Failing that, no.
×

Success!

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