Automatic scroll on browser output

Asked

Viewed 50 times

-2

I have a php script 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 keyboard fin button all the time until the script is finished.

I have found that it is possible to scroll automatically 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?

  • Why are the downvotes?

  • 1

    You really need to use javascript, because it will run in the browser and not on the server (php). (I did not downvote)

1 answer

1

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

  • Paging (show less records);
  • Reverse ordering, this way the items that would be in the footer stay at the top (works with items that follow a chronological order and you want the latest ones first, as email clients do);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.