Forum Moderators: phranque

Message Too Old, No Replies

How can you change properties in an iframe with dhtml?

         

vaxop

5:08 pm on Jul 16, 2003 (gmt 0)

10+ Year Member



Normally, you can change items in the scripts webpage with
document.whatever.value = something

but how can you set document to point to an iframe and not the current page?

Iguana

5:21 pm on Jul 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



get a reference to the iframe object and these are the object references that correspond to the document in the IFrame

in IE6 and 5.5
objIframe.contentWindow.document

NS6
objIframe.contentDocument

IE5
objIframe.document