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 -

java - Could not locate OpenAL library -

Non Unique Username with ASP.Net Identity 2.0 -