HTML IFrame

liunx

Guest
hi, <br />
i want to know how to access the height and width of iframe in ie5.0.<br />
<br />
I have <iframe id="idContent" height='200' width='300'></iframe><br />
<br />
and in the code if i use alert(idContent.height) it shows up as undefined. In ie6.0 i can use idContent.frameElement.height and that way i can get height.<br />
<br />
But i want to know how i can get the same effect in ie5.0. <br />
Any help is welcome! <br />
<br />
Thanks<br />
<br />
Amardeep Kanwar<!--content-->you only get "undefined" when you didn't declare the variable or the variable is null!!!<!--content-->Actually, the iframe is declared with height and width thing on the same page where i am trying to use the alert message, so i really don't know what is wrong.:(<!--content-->
 
Back
Top