This topic is locked

How to jump to top of page?

8/15/2015 8:42:16 PM
PHPRunner General questions
B
bioman author

Hi,

I am wondering how to jump to the top of a page when a new page is loaded. For example, when going from a record that is down low on a list page to an add page, I find that I end up very low on the add page. Often I have to scroll up to even see the add page. How do I get a page to be at the top when loaded? Thanks,

Brett

Admin 8/18/2015

I'm not quite sure where you need to add this code but here are some examples, with animation and without it:

http://stackoverflow.com/questions/1144805/how-do-i-scroll-to-the-top-of-the-page-with-jquery

B
bioman author 8/18/2015

Can I add jquery or javascript like in the examples to an "on page load" event in PHPRunner?



I'm not quite sure where you need to add this code but here are some examples, with animation and without it:

http://stackoverflow.com/questions/1144805/how-do-i-scroll-to-the-top-of-the-page-with-jquery