/    Sign up×
Community /Pin to ProfileBookmark

break iframe

whats the target=”” bit to make a link in an iframe fill the window but not open a new window

im sure i know but cant remember

cheers
adam

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWDec 03.2003 — I'd guess _parent... but I might be wrong
Copy linkTweet thisAlerts:
@PittimannDec 03.2003 — Hi!

That depends on how deeply the frames are nested.

target="_parent" should work in most cases.

Anyway - I'm sure if the iframe is somewhere in a document with a very "complicated" frame structure, target="_
top" will be safer (target="_parent" points to the [I]immediate[/I] farmeset parent)...

Cheers - Pit
Copy linkTweet thisAlerts:
@PopeyauthorDec 03.2003 — its the only frame on the page but ive used _top to be safe

cheers

adam
×

Success!

Help @Popey 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.3,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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