Click to See Complete Forum and Search --> : force a div tag scroll bar to scroll


rparker
04-08-2003, 12:19 PM
Hi all,

I have the following div tag:

<div id='divTag' style="overflow: auto; height:'100%'; ">

How can I force the scroll bar to scroll down to the bottom of the div area on page load? I have code to determine if the scrollbar is present, now I just need to make it scroll!

Many thanks,
Rachel

gil davis
04-08-2003, 12:41 PM
Use an anchor, and onload change the window.location.hash to the anchor.

See attached text file.

rparker
04-08-2003, 01:39 PM
Worked like a charm, many thanks!

agpasam
05-19-2008, 08:36 PM
How can I force the scroll bar to scroll down to the top of the div area on onblur