javascript - Make a page load at the bottom and move assets up on scroll down -


this class project. making 1 page site space kids. idea have page load @ bottom , scroll rocket blasts off etc. can't find solution getting load @ bottom without specifying anchor in url.

you use javascript scroll bottom of page when window loads.

window.addeventlistener('load',function() {     window.scrollto(0,document.body.scrollheight); }, false); 

in html document:

<!doctype html> <meta charset='utf-8'> <title>page title</title> <script type='text/javascript'>     window.addeventlistener('load',function() {         window.scrollto(0,document.body.scrollheight);     }, false); </script> <!-- rest of document --> 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -