var navMenu = ''; //document.getElementById("nav").innerHTML = "This is where the menu goes."; document.getElementById("nav").innerHTML = navMenu; /* Toggle between adding and removing the "responsive" class to nav when the user clicks on the icon */ function myFunction() { var x = document.getElementById("myNav"); if (x.className === "nav") { x.className += " responsive"; } else { x.className = "nav"; } }