Hi,
I want to resize an IFRAME.
It works nicely when I try to resize the frame with a commant loaded via
onfocus="if (parseInt(docum ent.body.scroll Height)<
parseInt(docume nt.body.offsetH eight))
parent.document .getElementById ('iframeID').st yle.height=pars eInt(this.docum e
nt.body.scrollH eight)+2+'px';
else
parent.document .getElementById ('iframeID').st yle.height=pars eInt(this.docum e
nt.body.offsetH eight)+1+'px';" onload="this.fo cus();"
in the IFRAME body tag.
But I want is to resize the IFRAME when it's content is fully loaded. The
problem is that the content is put in via a javascript.
Even if I put the above lines "if.. else .." under the document.write
commants the this.document.b ody.scrollHeigh t will return 0px.
Please help.
Wouter
I want to resize an IFRAME.
It works nicely when I try to resize the frame with a commant loaded via
onfocus="if (parseInt(docum ent.body.scroll Height)<
parseInt(docume nt.body.offsetH eight))
parent.document .getElementById ('iframeID').st yle.height=pars eInt(this.docum e
nt.body.scrollH eight)+2+'px';
else
parent.document .getElementById ('iframeID').st yle.height=pars eInt(this.docum e
nt.body.offsetH eight)+1+'px';" onload="this.fo cus();"
in the IFRAME body tag.
But I want is to resize the IFRAME when it's content is fully loaded. The
problem is that the content is put in via a javascript.
Even if I put the above lines "if.. else .." under the document.write
commants the this.document.b ody.scrollHeigh t will return 0px.
Please help.
Wouter
Comment