473,399 Members | 2,774 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,399 software developers and data experts.

Scroll position

Hey peeps, I'm trying to get a webpage open and start scrolled fully to the
bottom. How should I go about this?

Thanks!
Jul 23 '05 #1
3 1919
Phillip Parr wrote:
Hey peeps, I'm trying to get a webpage open and start scrolled fully to the
bottom. How should I go about this?


Two ways:

1. Put an anchor at the bottom and include it in the URI
for the page, e.g. http://<someURI>/page.html#end

2. Use an onload function that includes a window.scrollBy()
with a very large number (say 100000).

Method 1. is greatly preferred as window.scrollBy() is
legacy and not part of current spec.

Rob.
Jul 23 '05 #2
Now why didn't I think of that...

Thanks!

"RobG" <rg***@iinet.net.auau> wrote in message
news:jn*****************@news.optus.net.au...
Phillip Parr wrote:
Hey peeps, I'm trying to get a webpage open and start scrolled fully to
the bottom. How should I go about this?


Two ways:

1. Put an anchor at the bottom and include it in the URI
for the page, e.g. http://<someURI>/page.html#end

2. Use an onload function that includes a window.scrollBy()
with a very large number (say 100000).

Method 1. is greatly preferred as window.scrollBy() is
legacy and not part of current spec.

Rob.

Jul 23 '05 #3
JRS: In article <jn*****************@news.optus.net.au>, dated Mon, 27
Sep 2004 23:29:19, seen in news:comp.lang.javascript, RobG
<rg***@iinet.net.auau> posted :
Phillip Parr wrote:
Hey peeps, I'm trying to get a webpage open and start scrolled fully to the
bottom. How should I go about this?


Two ways:

1. Put an anchor at the bottom and include it in the URI
for the page, e.g. http://<someURI>/page.html#end

2. Use an onload function that includes a window.scrollBy()
with a very large number (say 100000).


3?. Execute something like location.href="#end", but only after
reaching #end ???

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk DOS 3.3, 6.20; Win98. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
PAS EXE TXT ZIP via <URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm> - also batprogs.htm.
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Boniface Frederic | last post by:
Hello, I have frame displaying the last posted messages. I set <meta http-equiv="refresh" content="5"/> to automatically refresh the frame every 5s My problem is; if I scroll the frame to see...
2
by: GrantS | last post by:
I am trying to convert the VB.Net code example povided by http://authors.aspalliance.com/JimRoss/Articles/MaintainScrollPos.aspx into C# (ASP.Net)without success. No errors are thrown in the VB...
4
by: ojorus | last post by:
Hi! I just wonder how I can save a page's scroll position with javascript. (i'm not a javascript developer) I have a PHP-page with two columns; the left contains a lot of thumbnails, and the right...
1
by: JC | last post by:
I'm sure you've all seen the save scroll position from 4 guys from rolla which can be found here > http://aspnet.4guysfromrolla.com/articles/111704-1.aspx BUT try to get that to work AND still be...
4
by: Emmanuel | last post by:
Hi, I have placed a DataList control inside a panel control to obtain a scrollable list using the overflow:auto attribute. The rows in the data list contains and edit LinkButton to enable...
6
by: | last post by:
Hi all, I have a long web form on asp.net 2.0. When I go at the bottom and click on submit, a postback occurs and if there are any validation errors (no client-side checking being done), the...
7
by: Lit | last post by:
Hi, How can I capture the vertical scroll bar position for a Listbox. I have a Listbox of 100 items + when I click on it I post back remove the item selected. After returning to the client...
4
by: Stevo | last post by:
I need to lock a DIV in place so that regardless of the scroll position, it remains stuck in a corner. Currently I'm hooked into the scroll events and I'm positioning dynamically based on the...
3
by: bgold12 | last post by:
How can I test if a vertical scroll bar is at the bottom of the range? I know that... document.getElementById('mydiv').scrollHeight ....returns the range, and... ...
12
Frinavale
by: Frinavale | last post by:
I think I'm trying to do something impossible. I have a <div> element with a overflow style set to "scroll". In other words my <div> element allows the user to scroll the content within it. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.