Last active
February 28, 2020 22:35
-
-
Save aloukissas/785992989347bc6d958ac2ab145060da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function maybeShowAlert(event) { | |
event.preventDefault(); | |
if (maybeShowAlert.shown === undefined) { | |
alert("Hello!"); | |
maybeShowAlert.shown = true; | |
} | |
} | |
document.addEventListener("mouseout", maybeShowAlert, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment