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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -