title: How to pass JSON to another screen in JavaScript?
body: <p>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.</p>
  
  <p>I used:</p>
  
  <pre><code>location.href = "first.html".
  var myJSON = {"user" : [{"name" : "Ajay" , "age":"20"},{"name" : "Vicky" , "age":"25"}]};
  </code></pre>
  
  <p>And I don't need to use storage option and need pure JavaScript code. No JQuery.</p>