• # JS

    Posté par . En réponse au message Comment déterminer la hauteur d'une page html. Évalué à 1.

    <scrip t>
    function iFrameHeight() {
    	var h = 0;
    	if ( !document.all ) {
    		h = document.getElementById('blockrandom').contentDocument.height;
    document.getElementById('blockrandom').style.height = h + 60 + 'px';
    	} else if( document.all ) {
    		h = document.frames('blockrandom').document.body.scrollHeight;
    document.all.blockrandom.style.height = h + 20 + 'px';
    	}
    }
    </scr ipt>
    < ifram e onload="iFrameHeight()" src="mapage.html" width="100%" height="500" scrolling="auto" align="top" frameborder="0" class="wrapper">
    This option will not work correctly. Unfortunately, your browser does not support Inline Frames
    </ i f r a m e >