JRS: In article <40b58e05$0$829$a344fe98@news.wanadoo.nl>, seen in
news:comp.lang.javascript, Ivo <no@thank.you> posted at Thu, 27 May 2004
08:43:13 :[color=blue]
>
>"Matt" wrote[color=green]
>> The html page is very long and has a button on the bottom.
>> How to make the browser go to the bottom of the page when the page
>> is loaded??
>>
>> Thanks![/color]
>
>window.scrollTo(0,1000);
>works if the page is not longer than 1000 pixels.
>To be sure and calculate the real height, see
><URL:
http://jibbering.com/faq/#FAQ4_9 >[/color]
For most pages, ISTM that window.scrollTo(0,9e9); should do; and
it is shorter than your suggestion. The second parameter should not be
much more than 1.7e13 for my MSIE4.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.