I have a web application and this one has MainPage, PageEntity and PageNotice and each of these is associated with a JS file. The goal is to start on the Main page and past x time go to the Entity page and past x time go to the News page. I used the setInterval of JS and it works but with a problem, as does load the pages is always loading the script again and then is always running the timer ... Any solution to solve this?