my name is Andrea can you help me please? I have a banner that I show with some text and if the user clicks it it closes but the problem is:
if I reload the page the banner reappears and does not remain closed as clicked on the X button
window.onload = function(){
document.getElementById('close').onclick = function(){
this.parentNode.parentNode.parentNode
.removeChild(this.parentNode.parentNode);
return false;
};
};
<div class="card-body">
<button id="close"><h4>X</h4></button>
<p class="card-title text-white">configurazione di Seo Tools Manager</p>
</div>