December 4th, 2003, 07:00 AM
I have a method that resizes an Iframe height by getting the scrollHeight of the document within it.
docHeight = mainframe.document.body.scrollHeight
How can I put the address of a page in a variable and then get the height of that document??
For eg, something like
newPage = tutroials/tutor.htm
newDocHeight = newPage.body.scrollHeight
(but this doesn't work)
December 4th, 2003, 07:22 AM
Unfortunately, you can't. scrollHeight reffers to the current window, not the actual document.