/    Sign up×
Community /Pin to ProfileBookmark

Change PAGE default target frame

I am modifying some cold fusion, is there a javascript code that sets the page default target to _parent…?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinAug 24.2006 — <base target='_parent'>

inside your header
Copy linkTweet thisAlerts:
@phpnstuffauthorAug 24.2006 — That works fine, But it won't with a redirect meta or javascript, it seems it only works when you click on a traditional href link.
Copy linkTweet thisAlerts:
@CrazyMerlinAug 24.2006 — so you are trying to redirect the parent?
Copy linkTweet thisAlerts:
@phpnstuffauthorAug 24.2006 — Yes, I want to redirect to a _parent, I want the whole page to change. This page is in an iframe but when they click "sign off" I want them to redirect to a url but _parent to change the whole page, not just the iframe.
Copy linkTweet thisAlerts:
@CrazyMerlinAug 24.2006 — use:

window.top.document.href = "new address"
×

Success!

Help @phpnstuff 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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