Last active
November 3, 2017 13:56
-
-
Save tomduncalf/043bc9184de0b7878c309c03f7549454 to your computer and use it in GitHub Desktop.
Close test
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
<button id="close">close me</button> | |
<script> | |
document.getElementById('close').addEventListener('click', function() { | |
alert(1); | |
window.close(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment