I need to edit this javascript that controls the slider menu, to keep slider menu current toggle position after page refresh
I've searched 2 dozen solutions on the webs without result
I expect the menu to stay open or closed based on current toggle after page refresh but I can't figure out how to add the correct code to the script
<script>
function openNav() {
document.getElementById("mySidenav").style.width = "250px";
document.body.style.backgroundColor = "rgb(0,0,0)";
}
function closeNav() {
document.getElementById("mySidenav").style.width = "0";
document.body.style.backgroundColor = "black";
}
</script>