I have a page which dynamically loads pages into an iframe.
I found scripts on the web, which adjust the height of the iframe depending on the height of it’s content.
But it does not work if the content page hast (normal)frames itself.
Now I want to check, whether the content page has frames or not, or even better access them so that I can calculate their lenght and then choose the highest length value from the subframes to be to length of my iframe.
Please help without JQuery.
Just plain old Javascript. 🙂
Thanks
you can access the frames property of the window object. it’s an array containing all the frames in the current document.
EDIT: corrected a very stupid error