I have a banner that closes with an onclick function that l created on a button
//button code where onclick is stored
<button id='close'onclick='this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); return false;'>x</button>
// js Code
window.onload = function(){
document.getElementById('close').onclick = function(){
this.parentNode.parentNode.parentNode
.removeChild(this.parentNode.parentNode);
return false; </script>
Now, how do l create a local storage for this function, that when someone refreshes the page the banner would be closed if the person did close it before?
*please excuse my language, not my primary one Also, terribly sorry if l cannot explain correctly my issue
Thanks