<body> <button id="menuBtn" type="button"> Open Menu </button> <script> let menuBtn = document.getElementById("menuBtn"); menuBtn.addEventListener('click', function () { // Open menu... }); </script> </body>