skip to Main Content

Remove localStorage older keys – Javascript

function PopUp(show) { document.addEventListener("click", function() { if (localStorage.getItem("s<?php echo date('dmY');?>") != 1) { window.open("https://www.google.com"); } localStorage.setItem("s<?php echo date('dmY');?>", 1); }); } window.onload = function() { setTimeout(function() { PopUp('show'); }, 500); } I try to delete the older storage keys, can…

VIEW QUESTION
Back To Top
Search