Welcome to the Example Event We are using Slido for your particpation Please log into Slido and then press Enter Event below Enter Event // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == modal) { modal.style.display = ; }