Click to See Complete Forum and Search --> : How to update the content of HTML page in <Iframe>?


Amo_Lin
01-02-2003, 08:05 PM
How to update the content of HTML page in <Iframe>?

Amo_Lin
01-02-2003, 08:08 PM
why the following is not work?

document.getElementById("innerFrame").document.getElementById("fontInInframe").size

Amo_Lin
01-02-2003, 09:55 PM
Thank you for your reply.

Another question;

May I change the contents of web page defined by Iframe's Src properties?

Amo_Lin
01-02-2003, 10:06 PM
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")

khalidali63
01-03-2003, 07:35 AM
document.getElementById("My inner Frame ID").document.getElementById("element ID in inner frame")


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

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

swon
01-04-2003, 02:26 AM
Maybe that will helps you:

http://forums.webdeveloper.com/showthread.php?s=&threadid=1492