How to always go to Top of Page

Got something cool to share with AppGini users? Feel free to post it here!
Post Reply
ronwill
Veteran Member
Posts: 49
Joined: 2015-08-08 10:12

How to always go to Top of Page

Post by ronwill » 2018-04-10 03:43

Is there a way to always jump to the top of page when moving from detailed view to tables or back and also when going from menu/home page to tables?

I've found that often (for example where an entry field exists, or search field) that my browser always takes me to the part of the page where these fields are instead of to the top of page, my header etc.

Help appreciated, Cheers, Ron
Ron - AppGini Pro V 5.7 Rev 1020

R Tammam
Veteran Member
Posts: 92
Joined: 2017-08-26 15:35

Re: How to always go to Top of Page

Post by R Tammam » 2018-04-16 13:09

Hello ronwill,

you should use in footer-extras.php

Code: Select all

 $(function(){
window.scrollTo(0,0);
})

ronwill
Veteran Member
Posts: 49
Joined: 2015-08-08 10:12

Re: How to always go to Top of Page

Post by ronwill » 2018-04-22 10:07

Excellent Tammam, works perfectly improved appearance, functionality, thks again
Ron
Ron - AppGini Pro V 5.7 Rev 1020

Post Reply