1//create localStorage key + value if not exist
2if(localStorage){
3 localStorage.myPageDataArr={"name"=>"Dan","lastname"=>"Bonny"};
4}
5
6//when browser closed - psedocode
7$(window).unload(function(){
8 localStorage.myPageDataArr=undefined;
9});
10