 <p>Try using local storage in JavaScript. To store a string:</p> <pre><code>localStorage.setItem('Name of Value', JSON.stringify("Your String")); </code></pre> <p>To retrieve string:</p> <pre><code>var retrievedObject = JSON.parse(localStorage.getItem('Name of Value')); </code></pre>