-1

I have a website in which I've added a code with which it reloads every 1-2 mins.

All I want to do this is, place a timer code there, and put a go-to "X" URL script after that time is completed.

But timer and that script got refresh after page reloads?

How to prevent and at the same time implement timer and go to a URL?.

Any Ideas?

Ali
  • 1
  • 1

1 Answers1

2

You can't refresh a page and keep it's script not refreshed, but... you can use window.localStorage or document.cookie!