page automatically scrolls to the bottom

07-22-2002, 10:46 AM
what is the code to make a webpage automatically scroll to the bottom when it loads?

07-22-2002, 11:46 AM
use the anchor tag

<a href="yourpage.html#wow">goto this point</a>

On the destination page, you'd have this simple tag at the point you want to scroll to automatically:<a name=wow>

07-22-2002, 11:52 AM
no, i want it to scroll to the bottom as soon as it loads. the visitor shouldnt have to click on a link. i just want it to automatically scroll to the bottom when it loads

07-22-2002, 12:02 PM
Well, how are the visitors coming to your page? Use the part I posted with the #anchor.

Otherwise, use some javascript like:
<body onLoad=window.location.href="">to automatically drop the page to that point when somebody types in "". (Assuming that default.html is the page that auto loads on your server).

07-22-2002, 12:10 PM
actually, its a chat script that refreshed every 5 seconds. and when it refreshes, the page scrolls to the top. but i want it to be at the bottom, b/c thats where the most recent posts are.

07-22-2002, 12:12 PM
Then, in the refresh portion of your "chat script", use the anchor tag. It's that simple.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum