Automatic scrolling in browser output

-2

I have a script in php that returns a lot of data on the screen, but the scroll always gets to the beginning of it so I have to press the end button on the keyboard all the time until the script finishes.

I have found that it is possible to do automatic scrolling with Javascript codes, but I do not want to use javascript in my code.

Is it possible to do this only with php and html?

    
asked by anonymous 01.03.2017 / 12:23

1 answer

1

Because the data is on the client, you need to do this with JavaScript. You have other options:

  • Paging (displaying fewer records);
  • Inverse sort, so the items that would be in the footer are at the top (works with items that follow a chronological order and you want the latest ones first, as email clients do);
02.03.2017 / 17:31