Can you offer some advice? I am looking to add cookies to my simple JavaScript code. Currently, the div is displayed when clicking on a link, but it hides again when the page reloads. I would like to implement cookies to remember the show state for 7 days.
Javascript
function showDiv() {
document.getElementById('auth_block').style.display = "block";
}
HTML
<a href="#" onclick="showDiv()">
<img src="/images/cont_btn.png">
</a>
<div style="display:none;" id="auth_block">Some information</div>