Scroll position

P

Phillip Parr

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

Thanks!
 
R

RobG

Phillip said:
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.
 
P

Phillip Parr

Now why didn't I think of that...

Thanks!

RobG said:
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.
 
D

Dr John Stockton

JRS: In article <[email protected]>, dated Mon, 27
Sep 2004 23:29:19, seen in RobG
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 ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top