Posted By

MrLesion on 10/16/13


Tagged

localstorage


Versions (?)

Load content from localStorage


 / Published in: jQuery
 

Simple way to load saved content from localStorage

  1. if (localStorage["myKey"] != null) {
  2. var storagename = JSON.parse(localStorage["myKey"]);
  3. $(".content").html(storagename);
  4. }

Report this snippet  

You need to login to post a comment.