How to set a scrollbar value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • joe

    How to set a scrollbar value

    I have a div like this:

    <div id="myDiv" style="width:20 0; height:200; overflow:scroll ;">

    How do I manually set the initial vertical scrollbar position?

    The div has several hundreds of lines of text and I'd like to start at a certain
    position (not necessaryly text line).
  • Joost Diepenmaat

    #2
    Re: How to set a scrollbar value

    joe <mt@invalid.com writes:
    I have a div like this:
    >
    <div id="myDiv" style="width:20 0; height:200; overflow:scroll ;">
    >
    How do I manually set the initial vertical scrollbar position?
    >
    The div has several hundreds of lines of text and I'd like to start at a certain
    position (not necessaryly text line).
    You can set the scrollLeft and scrollTop attributes from a script.

    --
    Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/

    Comment

    Working...