title: how to remove local storage value from private browser
body: <p>how to remove local storage value from private browser?</p>
  
  <p>Here it is my code which is working fine, but it is also working on private window event i don't want to work on that.</p>
  
  <h2>$(".browser_cache_save").click(function(event){ event.preventDefault(); //alert("h"); localStorage.setItem('name', 'Matt West'); $("#cachesaveid").remove(); }) window.onload = function(){ var name = localStorage.getItem('name'); if (name != "undefined" || name != "null") { $("#cachesaveid").remove(); } }</h2>