A
alejandro.rivero
In Mozilla, thus,the following code seems to resize correctly the IFRAME,
so no scroll bars:
<iframe marginwidth=0 marginheight=0 src=text.html
onload="this.height=
this.contentDocument.height+25">
</iframe>
The +25 is just allowance for a newline. It can be done in
a more elegant way, for sure, and it is not really needed if
we explicitly ask noscroll.
Also, a frameborder=0 can be desiderable too
The moral is that the onload in the child document is not needed
anymore except for compatibility for old/alternate browsers. For an
instance, konqueror does not seem to admit onload in the iframe :-(
Yours,
Alejandro Rivero
so no scroll bars:
<iframe marginwidth=0 marginheight=0 src=text.html
onload="this.height=
this.contentDocument.height+25">
</iframe>
The +25 is just allowance for a newline. It can be done in
a more elegant way, for sure, and it is not really needed if
we explicitly ask noscroll.
Also, a frameborder=0 can be desiderable too
The moral is that the onload in the child document is not needed
anymore except for compatibility for old/alternate browsers. For an
instance, konqueror does not seem to admit onload in the iframe :-(
Yours,
Alejandro Rivero