Jump to content

Staying at bottom of page


Guest Sons_of_dork
 Share

Recommended Posts

Guest Sons_of_dork

hi there,i wondered if there was a way to stay at the bottom of the page all the time?I have a prompt requiring an answer but i want the page to auto-scroll down to the bottom of the page so that the user can read the text then respondThanks

Link to comment
Share on other sites

Would the user not find this very annoying?This will scroll down to the bottom of the page when page is loaded, and hide the scrollbar.

<head><script>function scrollit(){  window.scroll(0,document.body.scrollHeight);}</script></head><body style="overflow: hidden" onload="scrollit()"><h1>Top of Page</h1><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hello</p><p>hell2</p><p>hell2</p><p>hell2</p><p>hell2</p><p>hell2</p><p>hell3</p><p>hell3</p><p>hello4</p><p>hello5</p><p>hello6</p><h1>Bottom of Page</h1></body>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...