Skip to content

is it possible to reach a variable / function from another page ? #189

Answered by sqllyw
BilalKhatib asked this question in Q&A
Discussion options

You must be logged in to vote

I use this in page1:

 window.localStorage.setItem(key, value);

in page2:

let state = window.localStorage.getItem(key)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sqllyw
Comment options

@BilalKhatib
Comment options

Answer selected by BilalKhatib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants