focus at the bottom of the page

A

Anonymous

Guest
hi guys,

i have a page that display a lot of records and all new records will be shown at the bottom of the page.

My question:
Is there anyway i can make the page to show bottom of the page by default instead of needing the visitor to scroll to the bottom of the page to view the latest update everytime they refresh the page ??

please advise.
 
Alicia said:
hi guys,

i have a page that display a lot of records and all new records will be shown at the bottom of the page.

My question:
Is there anyway i can make the page to show bottom of the page by default instead of needing the visitor to scroll to the bottom of the page to view the latest update everytime they refresh the page ??

please advise.

You may use ancher:
before bottom table set in HTML anchor tag like <A name="data"> (it's anchor) and use or in link like www.site.com/page.php?#data or if page new in body tag use onLoad JavaScript
 
maybe it helps:
--> http://www.html-reference.com/A.HTM
--> http://www.w3schools.com/tags/tag_a.asp
 
the name attribute is deprecated, and all tags should be lowercase.

Code:
<a id="data">

would be more correct
 
http://webdesign.about.com/library/tags/bltags-deprecatedtags.htm
 
i'm doing it like this (JavaScript)

scrollTo(0,document.body.scrollHeight);
 
do this
in the onload event
Code:
<html>
<script type="text/javascript"> 
function callBottom() {
  location.replace ("thcurrentpage.html#bottom");
}
</script>
<body onload="callBottom()">
...
</body>
</html>
 
Back
Top