gabepreston
Hey guys,
Got a question here that I'm hoping someone can answer. I have a <textarea> field in my document that is being fed data from a script as the page loads. The content of the textarea grows rather fast. As such, for the user to view the new data, they have to continually drag the scroll bar down the side to see the newest data as it appears. What I want to do is this- automatically keep the <textarea> scrolling to the bottom so all the new data is shown as it appears. Once the page loads, it will stop scrolling to the bottom of the <textarea> so that the person can now scroll up and down through the data at their leisure. I've spent some time looking around, and I saw some references to the 'scrollTop' object property, but I really don't know if thats right, let alone what to do with it. Any suggestions? Thanks for your time.
-gabriel
Got a question here that I'm hoping someone can answer. I have a <textarea> field in my document that is being fed data from a script as the page loads. The content of the textarea grows rather fast. As such, for the user to view the new data, they have to continually drag the scroll bar down the side to see the newest data as it appears. What I want to do is this- automatically keep the <textarea> scrolling to the bottom so all the new data is shown as it appears. Once the page loads, it will stop scrolling to the bottom of the <textarea> so that the person can now scroll up and down through the data at their leisure. I've spent some time looking around, and I saw some references to the 'scrollTop' object property, but I really don't know if thats right, let alone what to do with it. Any suggestions? Thanks for your time.
-gabriel