Div scrollbar position

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Div scrollbar position

Post by PrObLeM »

I have a div that has scroll bars in it and i want it (onload) have the scrollbar position on the bottom of the div

is that possible?
User avatar
johnperkins21
Forum Contributor
Posts: 140
Joined: Mon Oct 27, 2003 4:57 pm

Post by johnperkins21 »

Could you set the focus at the end of the scrollable div? That would put it down there wouldn't it?
leenoble_uk
Forum Contributor
Posts: 108
Joined: Fri May 03, 2002 10:33 am
Location: Cheshire
Contact:

Post by leenoble_uk »

Maybe if it was an iframe instead of a div with overflow you could use scrollTo
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

personally, I'd go with the focus idea, maybe tossing a blur() just after it, so the focus doesn't linger in the wrong place..
dave420
Forum Contributor
Posts: 106
Joined: Tue Feb 17, 2004 8:03 am

Post by dave420 »

Or, you could use the scrollIntoView() DHTML method, made for just this occasion :)
Post Reply