focus at the bottom of the page

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Alicia
New php-forum User
New php-forum User
Posts: 94
Joined: Sun Sep 21, 2003 5:30 pm

focus at the bottom of the page

Postby Alicia » Thu Feb 26, 2004 2:47 am

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.

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: focus at the bottom of the page

Postby WiZARD » Thu Feb 26, 2004 2:54 am

Alicia wrote: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

User avatar
Ben
New php-forum User
New php-forum User
Posts: 41
Joined: Mon Jul 26, 2004 2:37 pm
Location: Remagen / Germany
Contact:

Postby Ben » Mon Jul 26, 2004 2:53 pm


User avatar
Dabear
New php-forum User
New php-forum User
Posts: 24
Joined: Thu Jul 22, 2004 12:48 pm
Location: Norway
Contact:

Postby Dabear » Tue Jul 27, 2004 1:27 am

the name attribute is deprecated, and all tags should be lowercase.

Code: Select all


<a id="data">


would be more correct

User avatar
Ben
New php-forum User
New php-forum User
Posts: 41
Joined: Mon Jul 26, 2004 2:37 pm
Location: Remagen / Germany
Contact:

Postby Ben » Tue Jul 27, 2004 9:35 am

Dabear wrote:the name attribute is deprecated

hi.
where do you get this information from?#

thanks.

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Tue Jul 27, 2004 10:30 am


User avatar
Ben
New php-forum User
New php-forum User
Posts: 41
Joined: Mon Jul 26, 2004 2:37 pm
Location: Remagen / Germany
Contact:

Postby Ben » Tue Jul 27, 2004 11:07 am

swirlee wrote:http://webdesign.about.com/library/tags/bltags-deprecatedtags.htm


thank you.

AceEmbler
New php-forum User
New php-forum User
Posts: 21
Joined: Thu Jul 01, 2004 6:52 am

Postby AceEmbler » Sat Aug 07, 2004 11:52 am

i'm doing it like this (JavaScript)

scrollTo(0,document.body.scrollHeight);

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Postby ruturajv » Mon Aug 09, 2004 12:24 am

do this
in the onload event

Code: Select all

<html>
<script type="text/javascript">
function callBottom() {
  location.replace ("thcurrentpage.html#bottom");
}
</script>
<body onload="callBottom()">
...
</body>
</html>


Return to “HTML Basics”

Who is online

Users browsing this forum: No registered users and 0 guests

cron