title: Saving Values in LocalStorage onclick?
body: <p>Trying to save this value to localstorage everytime the user clicks either up or down???</p>
  
  <pre><code>&lt;script&gt;
     var Clicks = 800;
     function UpClick() {
        Clicks = Clicks + 25;
        document.getElementById('CountedClicks').innerHTML = Clicks + '';
        if (Clicks &gt; 950) {
           Clicks = 950;
        }
     }
     function DownClick() {
        Clicks = Clicks - 25;
        document.getElementById('CountedClicks').innerHTML = Clicks + '';
        if (Clicks &lt;= 0) {
          Clicks = 25;
        }
     }
  &lt;/script&gt;
  
  &lt;span id="CountedClicks"&gt;800&lt;/span&gt;
    &lt;input type="image" src="http://findicons.com/files/icons/2332/super_m/64/navigation_up_button.png" name="1462_EXPOSURE_TI_UP" value="1462_EXPOSURE_TI_UP_BUTTON_WAS_CLICKED" onclick="UpClick()" /&gt;
  
    &lt;input type="image" src="http://findicons.com/files/icons/2332/super_mono/64/navigation_down_button.png" name="1462_EXPOSURE_TI_DOWN" value="" onclick="DownClick()" /&gt;
  </code></pre>
  
  <p>Made it into a jsfiddle : <a href="http://jsfiddle.net/JRxcr/6/" rel="nofollow">http://jsfiddle.net/JRxcr/6/</a></p>
  
  <p>Can't seem to get the hang of getItem or setItem, have read hours of material just not getting it hopefully someone can help</p>
  
  <p>thanks...</p>