focus at the bottom of the page

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

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

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: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

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
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

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

Mon Jul 26, 2004 2:53 pm

my private website
Developer's Guide: Community, Portal, Helpdesk, Tutorials ...
----------------
English isn't my first language. Please excuse my way of expressing ..

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

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

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

Tue Jul 27, 2004 9:35 am

Dabear wrote:the name attribute is deprecated

hi.
where do you get this information from?#

thanks.
my private website
Developer's Guide: Community, Portal, Helpdesk, Tutorials ...
----------------
English isn't my first language. Please excuse my way of expressing ..

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

Tue Jul 27, 2004 10:30 am

Image

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

Tue Jul 27, 2004 11:07 am

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


thank you.
my private website
Developer's Guide: Community, Portal, Helpdesk, Tutorials ...
----------------
English isn't my first language. Please excuse my way of expressing ..

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

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: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

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>

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests