#1
  1. Senior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    421
    Rep Power
    11

    Question scrollHeight problem


    Hi,
    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)
    Captain Planet.
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,008
    Rep Power
    2791
    Unfortunately, you can't. scrollHeight reffers to the current window, not the actual document.

IMN logo majestic logo threadwatch logo seochat tools logo