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