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!
bottom. How should I go about this?
Thanks!
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?
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.
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).
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.