I have a page1.html which contains set of data
{'key1':'value1','key2':'value2','key3':'value3'}
and a link
<a target='_blank' href='page2.html'>Click To Navigate</a>
which will navigate to page2.html.
I would like to ask how can I pass all the data above in page1.html
to page2.html
so that I can use them in page2.html
.
What I tried to use is localStorage
, but I can store only 1 set of data at a time, so if in my page1.html
have many set of data, same key but different value they will be overlapped when I store them in localStorage, then I can not pass all these set of data to the page2.html
.
Anyone got an idea? Thank you so much