Results 1 to 2 of 2

Thread: Div autoscroll and set focus

  1. #1

    Thread Starter
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Div autoscroll and set focus

    Here's the situation:
    I have a page which on the left has a DIV set to auto scroll,
    and a list of links. When the user selects one of the links the
    details appear on the right side of the screen after a submit.
    The problem is when the page reloads the scroll bar for the DIV
    is back at the top; whereas I want it to automaically scroll down
    to the link that had been selected (so it stays in view).

    Do I use window.scrollTo() and how?
    Any ideas appriciated(sp?)

    BTW this is for an IE specific web-app.

    thanks in advance

  2. #2
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    Its ages since I used it last, but couldnt you just use:



    <a href="window.location: #top">

    or something like that. As I said, its a long, LONG time since I used it. Sorry I couldnt be more specific,


    James
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

Posting Permissions

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



Click Here to Expand Forum to Full Width