Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Wednesday, June 18th, 2008

Time Event
11:02p
controling the scrollbar on divs
I have a div with autoflow set up so of the text is taller than the size of the div the scroll bar shows up on the right hand side of the div. I have a function that adds text to the bottom of the div. I want the scroll bar to go to the bottom of the scrollbar area. I got it working in Safari, but not in Firefox (not sure about IE yet). With the following javascript.

document.getElementById('incoming-textarea').scrollTop=6000000000;";

Has anyone have a better way that works on all the browsers?

<< Previous Day 2008/06/18
[Calendar]
Next Day >>
About LiveJournal.com
Image