When posting please use code tags so it is readable. I did it for you, you need to do it in the future.
You have an id, so use document.getElementById to reference it, you do not need to use the frames array which uses a name, not an id.
Joined: Mar 30, 2004
the problem is i need to get height and width of a html file inside current html file I changed the code like this. Its giving me the height and width of the current html page. But i need the details of html file present in iframe tag which is inside a div tag.
If i use document.frames instead of document.getElementbyId , it gives me the correct height and width of the html file inside iframe.
That also works if iframe is outside not inside div.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: not able to get width and height of another html file inside html