var flag = false; function openNav() { document.getElementById("sideNavigation").style.width = "250px"; } function closeNav() { document.getElementById("sideNavigation").style.width = "0px"; }