HTML

          <div class="section">
  
  <div id="js-div">Local storage not functional</div>
</div>
<div class="section">
  <div class="summary">This test creates a local store (HTML5) and sets and retrieves data from this store.</div>
</div>
        

Javascript

            function store() {
  if (window.localStorage) {
    var count=window.localStorage.getItem("count");
    if (!count) {
      count=0;
    }
    count++
    window.localStorage.setItem("count",count);
    document.getElementById("js-div").innerHTML="<i>Count = " + count + "</i>";
  } else {
    document.getElementById("js-div").innerHTML="<i>Local Storage not available</i>";    
  }
}
window.onload = function() {
  store();
}

          
> Robot Bot or Crawler
This site is optimised for display on a mobile phone. For best results please visit with your phone @ http://test.bemoko.com
mobile ... made easy