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 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    96
    Thanks
    11
    Thanked 0 Times in 0 Posts

    scrollIntoView for a div, but not the main page

    Hi,

    I've got a text area with a vertical scrolldown bar. Using the following JS code the text area scrolls down as I'd expect:

    document.getElementById(ID GOES HERE).scrollIntoView(true);

    But the main are also scrolls down - is there any way to stop the main page scrolling down too?

  • #2
    New Coder
    Join Date
    Mar 2009
    Posts
    96
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Exclamation

    *bump*

    Does anyone know how to do this? I'm kinda desparate!

  • #3
    Banned
    Join Date
    Nov 2008
    Location
    not found
    Posts
    284
    Thanks
    0
    Thanked 53 Times in 51 Posts
    Quote Originally Posted by icklechurch View Post
    *bump*

    Does anyone know how to do this? I'm kinda desparate!
    It isn't entirely clear what you want to do here. Are you talking about a <textarea> element, and if so what parameter are you passing to be able to scroll to a point within the text?


  •  

    Posting Permissions

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