Local storage save and retrieve text input value
<p>So I am trying to save the value of a text input field after a user enters in it, then once the page is reloaded when clicking action2 it pushes the saved value into the value of the text input field. As you can tell from my code I do not have much knowledge on this subject but I am struggling through a class for it and have tried everything I can think of!</p>

<p>Thanks in Advance!</p>

<pre><code>&lt;input type="text" id="header" name="header" value="name"&gt;
&lt;p&gt;
    &lt;button onclick="action()" type="button"&gt;Save me!&lt;/button&gt;
&lt;/p&gt;
&lt;p&gt;
    &lt;button onclick="action2()" type="button"&gt;Remember me!&lt;/button&gt;
&lt;/p&gt;

&lt;script&gt;
    function action() {
        localStorage.setItem(header, name)
    } 

    function action2() {
        localStorage.getItem(header, name)
    }
&lt;/script&gt;
</code></pre>