Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    179
    Thanks
    17
    Thanked 0 Times in 0 Posts

    document.documentElement.clientHeight VS document.body.clientHeight

    In IE v6, for the strict mode,

    document.documentElement.clientHeight returns the size for the Window

    while

    document.body.clientHeight returns the size for the Document


    1)What is the difference between this window and the document? Does the Window count in the top menu bar and the bottom status bar while the Document does not?

    2) How should I understand this clientHeight? Does it indicate the available viewing area of the browser window? or else?


    Thanks


    Scott

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It depends on the how the document is setup. In quirks mode or standards compliant mode. I think this should explain it all.
    http://www.softcomplex.com/docs/get_..._position.html
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •