Calculadora Ahorro Comisiones
function resizeIFrameToFitContent( que, cuanto) { heightTo=cuanto+5 que.style.height = heightTo + "px" } function resizeIFrameToFitContentParent( que, cuanto) { heightTo=cuanto+10 que.style.height = heightTo + "px" } function triggerFunc(){ var iFrame = document.getElementById( 'iframe-clases-limpias' ); var height = iFrame.contentWindow.document.body.scrollHeight; resizeIFrameToFitContent( iFrame, height); var divs = document.querySelectorAll(".autoheight"); for( var i = 0; i < divs.length; i++) { resizeIFrameToFitContentParent( divs[i], height ); } } window.addEventListener('DOMContentLoaded', function(e) { triggerFunc() } ); var iFrame = document.getElementById( 'iframe-clases-limpias' ); iFrame.onload = function() { top.window.scrollTo(0,0); }; setInterval(function() { triggerFunc(); }, 500);