Created
September 24, 2017 14:27
-
-
Save kgtkr/e5ace6cc6897de1e4c758d5ab4270514 to your computer and use it in GitHub Desktop.
dom remove
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
document.addEventListener('click',e=>{ | |
e.target.parentNode.removeChild(e.target) | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment