mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 20:32:34 +00:00
11 lines
281 B
JavaScript
11 lines
281 B
JavaScript
|
|
||
|
function autoadjustheight(iframeid)
|
||
|
{
|
||
|
// Find the height of the internal page
|
||
|
var doc_height = document.getElementById(iframeid).contentWindow.document.body.scrollHeight;
|
||
|
|
||
|
// Change the height of the iframe
|
||
|
document.getElementById(iframeid).height = doc_height;
|
||
|
}
|
||
|
|