HTML5, localStorage

In this example, the page will load first without the text stored by HTML5. On refresh you will see the text: “The text you want to save”, appear in the <div> container. <!DOCTYPE html> <html> <head> <script src=”http://code.jquery.com/jquery-1.8.2.min.js”></script&gt; </head> <body> <header>Storing Items using HTML5</header> <div id=”show”>Text Stored: </div> <script> if(localStorage.getItem(“varContainer”)) { $(“#show”).append(localStorage.getItem(“varContainer”)); } localStorage.setItem(“varContainer”, “The text… Read More HTML5, localStorage