I have a webpage (index.html) with a JSON object and a button. When I click the button I need to open another webpage (first.html) and send this JSON object from 1st screen to 2nd screen.
I used:
location.href = "first.html".
var myJSON = {"user" : [{"name" : "Ajay" , "age":"20"},{"name" : "Vicky" , "age":"25"}]};
And I don't need to use storage option and need pure JavaScript code. No JQuery.