I\'m developing with jquery and I stumbled with the next problem: I added an IFrame inside the main page and I want to re size them from inside. I tried some ideas but witho
function setHeight() { parent.document.getElementById('the-iframe-id').style.height = document['body'].offsetHeight + 'px'; }
Another way using Javascript
Javascript
document.getElementById("ifr").height= "500px"; document.getElementById("ifr").width= "500px";
DEMO JSFIDDLE