<h1>localStorage Demo</h1>
<p>You can use this to test creating and loading a localStorage object.</p>
<!-- The value of the localStorage object -->
<input id="lsInput" value="123">
<!-- Button to create the localStorage object -->
<button onclick="localStorage.setItem('lsName', document.getElementById('lsInput').value)">Save</button>
<br /><br />
<!-- The value of the localStorage object -->
<input id="lsOutput">
<!-- Button to load the localStorage object -->
<button onclick="document.getElementById('lsOutput').value = localStorage.getItem('lsName');">Load</button>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.