Hello All,
Is there a way to have a variable declared on one page, and then have that variable and value available for use on a different page/next page, without having to declare it again?
|
|
Hello All,
Is there a way to have a variable declared on one page, and then have that variable and value available for use on a different page/next page, without having to declare it again?
No - you need to use cookies or local storage to pass information between pages.
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
Don't forget to start your JavaScript code with"use strict";which makes it easier to find errors in your code.
Thanks, Felgall.