Module

Archived
Forum
(read-only)

Oliver Heine does not actively monitor this forum
(but you can still get help from other EE users).

EE 1
EE 2
Framed

Back to this add-on's main page
View Other Add-ons From Oliver Heine

     

You must be logged in to post.

Code: Auto height your own pages

General

Joobs
Joobs

For those of you who are embedded pages that you have control over, you can use this script to autoheight the iframe so it’s the same size as the embedded page.

Put this code in embedded page:

<head>
<
script>
function 
setHeight() {
    parent
.document.getElementById("viewer").style.height=this.document.body.scrollHeight+"px"
}
</script>
</head>

<
body onLoad="setHeight();">
...
</
body