You just have to simply specify the height and width parameters - since they are valid attributes of the iframe dom element.
function resize(width, height) { var frame = document.getElementById('my_iframe'); frame.width = width; frame.height = height; }
Of course, this only applies if you are trying to resize the iframe from its parent element (a document with the actual iframe tag). If you are trying to resize an iframe from an iframe (the document loads an iframe), you will need to call the parent function's public function to perform the resize.
In iframe: parent.resize(600, 800);
Michael wales
source share