function resizeIframe() { // Must launch on the body onload event handler for IE // Use document.documentElement if you are in Compat mode var iH = ( document.body.scrollHeight + 5 ) + "px"; // parent.frames[ 'cue' ].style.height = iH; // parent.frames[ 'cue' ].setStyle( 'height', iH ); // var stylesheet = parent.document.styleSheets[ parent.document.styleSheets.length - 1 ]; // stylesheet.addRule( "#cue", "height: " + iH ); // parent.frames[ 'cue' ].setAttribute( 'height', iH ); parent.document.getElementsByName( 'cue' )[ 0 ].setAttribute( 'height', iH ); }
Last modified: