title: Storage for button clicks
body: <p>I have a counter for button clicks, but if I <strong>refresh</strong> the page it sets back to <code>'0'</code>. How can I <strong>storage</strong> the input <strong>value</strong> so if I close the browser the <strong>previous</strong> <strong>number</strong> will remain still?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(function() {
    $('.counter').click(function() {
      $(this).val(parseInt($(this).val()) + 1);
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;input type="button" class="counter" value="0"&gt;</code></pre>
  </div>
  </div>
  </p>