create java script to auto next page in pagination grid view every n second and loop that

Hi everyone,

I am creating simple yii2 application to view data in table, i use grid view to view data from database. Grid view will be refreshed every minute, but if data show more than 8 record, page is scrolling so i limit data shown using pagination in grid view. Now i want to create script to automatically click the pagination button and loop that every minute. do you have any sugestion how to do that. thanks before