/    Sign up×
Community /Pin to ProfileBookmark

Working with iFrames

Hi
I have a basic page with a links table on the left and in the middle of the page as iframe.. this is the only code the iframe has

[code=html]<iframe> </iframe>[/code]

how do i make it so that when i click on a link on the left, the text shows up in the iframe?

Fet

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 19.2005 — &lt;a href="aPage.htm" onclick="document.getElementsByTagName('iframe')[0].src=this.href; return false;"&gt;link&lt;/a&gt;
Copy linkTweet thisAlerts:
@CharlesNov 19.2005 — You would do better to change that IFRAME element a little bit:&lt;iframe src="" name="myframe"&gt;&lt;/iframe&gt;

&lt;a href="http://www.w3.org" target="myframe"&gt;W3C&lt;/a&gt;
Copy linkTweet thisAlerts:
@FangNov 19.2005 — You would do better to change that IFRAME element a little bit ...[/QUOTE] If you use a Transitional DTD, although the W3C recommends Strict.
Copy linkTweet thisAlerts:
@CharlesNov 19.2005 — If we're using the IFRAME element then we're already using the transitional DTD.
×

Success!

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