/    Sign up×
Community /Pin to ProfileBookmark

How to update the content of HTML page in <Iframe>?

How to update the content of HTML page in <Iframe>?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@Amo_LinauthorJan 03.2003 — why the following is not work?

document.getElementById("innerFrame").document.getElementById("fontInInframe").size
Copy linkTweet thisAlerts:
@Amo_LinauthorJan 03.2003 — Thank you for your reply.

Another question;

May I change the contents of web page defined by Iframe's Src properties?
Copy linkTweet thisAlerts:
@Amo_LinauthorJan 03.2003 — thank you;

I have just such a issue need to resolve.



how to reference the page in iframe from current page?


Is the following statement OK? please give me example.

document.getElementById("My inner Frame ID").document.getElementById("element ID in inner frame")
Copy linkTweet thisAlerts:
@khalidali63Jan 03.2003 — 
document.getElementById("My inner Frame ID").document.getElementById("element ID in inner frame") [/QUOTE]



but, syntactically, I don't see anything wrong with what you've posted. [/QUOTE]


No the post is incorrect.

you can not reference is with getElementById reference

the correct syntax will be refeerencing it by iframe name

iframName.document.geetElementById("div id of iframe").style.attribute="value"

Khalid
Copy linkTweet thisAlerts:
@swonJan 04.2003 — Maybe that will helps you:

[URL=http://forums.webdeveloper.com/showthread.php?s=&threadid=1492]http://forums.webdeveloper.com/showthread.php?s=&threadid=1492[/URL]
×

Success!

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