473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1179
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Matt Adams | last post by:
A web page which exists for a couple of years under a certain address (e.g. http://www.aaa.com/bbb/ccc.html) is (should be) moved to another location (e.g....
1
by: DK15798 | last post by:
Anybody think there is a way to solve the anagram problem (reading in a dictionary of words and printing out the anagrams for all words) with an open address hash table as opposed to a chained hash...
3
by: McGoo | last post by:
Hi, With ref. to MS IE, when I use window.open with the usual sizing and 'toolbar=yes', 'menubar=yes' the target URL opens in a new window - but without an address bar. 'addressbar=yes' does not...
5
by: Tim Walters | last post by:
My web page was put together by the Spanish yellow pages company (closely associated with -- but don't ask me how -- with the ISP Telefonica). I can access the page by going to the yellow pages...
13
by: pvong | last post by:
VB.Net I'm pulling Data from a DB and creating a letter by filling the Labels. It works perfectly, but if Addr2 and Addr3 are blank, it leaves a Blank space in that area. Is there a way to...
1
by: S N | last post by:
i want to force the web page address to be saved in browser history using asp vbscript. please advise on how to do it.
1
by: cemohsen | last post by:
hi to all i have a grid and any button to it and each button has a showmodal window to process i want if user type my showmodal page address in browser , he can't open this page and redirect to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.