Skip to content

Instantly share code, notes, and snippets.

@tomduncalf
Last active November 3, 2017 13:56
Show Gist options
  • Save tomduncalf/043bc9184de0b7878c309c03f7549454 to your computer and use it in GitHub Desktop.
Save tomduncalf/043bc9184de0b7878c309c03f7549454 to your computer and use it in GitHub Desktop.
Close test
<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