1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

document.body.scrollTop in IE

Discussion in 'JavaScript' started by rickbkis, Mar 23, 2005.

  1. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #21
    What's happening in the IE8 according the same issue? Any information. I couldn't install IE8 along IE7 and i cannot test it. Please if someone knows to share with us. Thanks!
     
    yugolancer, Jun 29, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #22
    in IE8, there is a button to emulate ie7
     
    crath, Jun 29, 2008 IP
  3. rakesh253

    rakesh253 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    You have saved my day. No, maybe a week. Thanks a ton.

    Rakesh
     
    rakesh253, Sep 4, 2008 IP
  4. Noman

    Noman Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #24
    document.body.scrollTop in IE6 was returning 0, tried different suggestions, nothing worked. While trying different alternatives this worked for me:

    Used an id for the body as <body id="bodyId" ....> then tried document.getElementById("bodyId").scrollTop and it returned the desired value.:)
     
    Noman, Aug 2, 2009 IP