0
Keep variable persistent on multi page using javascript
hello everyone, I have two pages and I want so to keep the value of var somvar on of page 1 to the page 2. every page is JavaScript page.
2 Answers
+ 2
I don't think you can create global variable across the pages. Use PHP session or cookie to achieve that.
Or you can try to design all the contents of the pages in a single-page webpage
0
thank you for answer it. I have a single page but I use pagination , so I want to keep some variable persist in every pagination page.