469,353 Members | 2,041 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

Can I make a page open at the last line without having page#zzz in the address bar?

Hi all

I have a webpage that contains a long table and it would be nice if on opening with http://page.asp
the browser automatically jumps to the last line, without showing http://page.asp#bottom
in stead of http://page.asp in the address bar.

Currently I use this small script at bottom

---------- table display code----------
--

</tbody>
</table>
<a name='bottom'></a><script type='text/javascript'>window.location = '#bottom';</script>
</body></html>

Is there a way?
Thank you all

--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
Jul 23 '05 #1
6 1111
On Mon, 07 Jun 2004 19:05:05 GMT, Jake wrote:
I have a webpage that contains a long table and it would be nice if on opening with http://page.asp
the browser automatically jumps to the last line, without showing http://page.asp#bottom
in stead of http://page.asp in the address bar.


If you want the last line to be prominent..
why not reverse the order of the data?

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2
Voyez la méthode scroll ; il vous faudra determiner la longueur de la
fenetre

GR

Jake a écrit:
Hi all

I have a webpage that contains a long table and it would be nice if on opening with http://page.asp
the browser automatically jumps to the last line, without showing http://page.asp#bottom
in stead of http://page.asp in the address bar.

Currently I use this small script at bottom

---------- table display code----------
--

</tbody>
</table>
<a name='bottom'></a><script type='text/javascript'>window.location = '#bottom';</script>
</body></html>

Is there a way?
Thank you all


Jul 23 '05 #3
Hi Andrew Thompson,
On Mon, 07 Jun 2004 19:05:05 GMT, Jake wrote:
I have a webpage that contains a long table and it would be nice if on opening with http://page.asp
the browser automatically jumps to the last line, without showing http://page.asp#bottom
in stead of http://page.asp in the address bar.


If you want the last line to be prominent..
why not reverse the order of the data?

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology


Thanks for replying,
The idea is not bad, but not practical for a few reasons:
1. The data is coming from a file, where events are appended at the tail, with time/date stamp
2. I prefer having the most recent events at the bottom
3. Option to print the document with browsers button, older events usually on top of page

--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
Jul 23 '05 #4
Lee
Jake said:

Hi all

I have a webpage that contains a long table and it would be nice if on opening
with http://page.asp
the browser automatically jumps to the last line, without showing
http://page.asp#bottom
in stead of http://page.asp in the address bar.


<body onload="scrollTo(0,9e9)">

The number 9e9 being Stockton's Constant, a large number represented by few
characters.

Jul 23 '05 #5
Hi Lee,
Jake said:

Hi all

I have a webpage that contains a long table and it would be nice if on opening
with http://page.asp
the browser automatically jumps to the last line, without showing
http://page.asp#bottom
in stead of http://page.asp in the address bar.


<body onload="scrollTo(0,9e9)">

The number 9e9 being Stockton's Constant, a large number represented by few
characters.


Yesssss ! thats it!
Works great !

Thanks Lee

--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
Jul 23 '05 #6

Hi G Roydor,
Voyez la méthode scroll ; il vous faudra determiner la longueur de la
fenetre

GR


Merci GR,
I will study that, but I have a perfect solution from Lee
See further down
Thank you too
--
Windows98 links to solutions http://jake98.no-ip.info
Replies in the same thread please
Regards Jake
Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by McGoo | last post: by
13 posts views Thread by pvong | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.