Quantcast
Viewing all articles
Browse latest Browse all 49219

How to keep functions running across multiple pages

Is there a way to keep functions from one page running after switching to another page? For a very simple example, if I’m running a timer on page 1, is there a way to keep that timer running after I switch to page 2?

I have been storing the processed data from page 1 into local storage, then inject the same functions into page 2 and continue processing the locally stored data.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49219

Trending Articles