12 June 2009 0 Comments

How to autoresize parent frame height from child frame

Scenario A parent document contains a frame that loads a file which content is dynamic and you want the frame to not scroll and autosize the height of the frame. Solution function autoResizeParent() { // if no parent don’t attempt to change if (parent != null) { var frameList = parent.document.body.getElementsByTagName(“iframe”); // is there any frames

Originally posted here:
How to autoresize parent frame height from child frame

If you liked this post, buy me a Coffee.

Leave a Reply