/ Published in: jQuery
                    
                                        Simple way to load saved content from localStorage
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 if (localStorage["myKey"] != null) { var storagename = JSON.parse(localStorage["myKey"]); $(".content").html(storagename); }
Comments
                    Subscribe to comments
                
                