function goSetHeight() { if( isFunction( parent.setIframeHeight ) ) { if (parent == window) return; // no way to obtain id of iframe object doc loaded into? no parentNode or parentElement or ... else parent.setIframeHeight( 'content' ); } } // Behoud huidige onload-aanroepen: var nowOnload = window.onload; window.onload = function () { if(nowOnload != null && typeof(nowOnload) == 'function') nowOnload( ); goSetHeight( ); } function isFunction( a ) { return typeof a == 'function'; }