/    Sign up×
Community /Pin to ProfileBookmark

I have created an Iframe as bellow in a site:

<iframe src =”user_RelatedBlog.aspx” width=”100%” height=”200″ style=”height: 355px”>
</iframe>

Now from this I frame I would like to click a link and change the main frame in which the iframe is embedded. How is it done?

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@derekharveyApr 08.2007 — On your link add or modify the target attribute to be open windows in the _parent frame like so:

<a href="link.php" target="_parent">here is the breaking link</a>

I hope this helps.
Copy linkTweet thisAlerts:
@WebJoelApr 08.2007 — I have created an Iframe as bellow in a site:

<iframe src ="user_RelatedBlog.aspx" width="100%" [B][U]height[/U]="200" style="[U]height[/U]: 355px"[/B]>

</iframe>

Now from this I frame I would like to click a link and change the main frame in which the iframe is embedded. How is it done?[/QUOTE]
Make up your mind. Here, the style="" will be precedant.

For that matter, if you're going to add style="", do all selectors, not just some:

[B]style="height:355px[/B] (or [B]200px[/B], -whatever)[B]; width:100%;[/B]"

and lose the HTML [B]width="200%" height="200"[/B]
×

Success!

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