jQuery (window). on ( 'load' , function ( event ) { document. getElementById ( "contenido" ). addEventListener ( "load" , autofitIframe ); //Ajusta el tamaño de un iframe al de su contenido interior para evitar scroll function autofitIframe () { if ( ! window. opera && document. all && document. getElementById ) { this . style . height = this . contentWindow .document. body . scrollHeight ; } else if (document. getElementById ) { this . style . height = ( this . contentDocument . body . scrollHeight + 100 ) + "px" ; } } });