Last active
October 12, 2016 13:34
-
-
Save dominikbulaj/10fb77881eb3521a027e599ba61af79f to your computer and use it in GitHub Desktop.
Handle click inside iframe #ES2015 #ES6 code
This file contains hidden or 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.querySelector('iframe#abc123').contentDocument | |
.querySelectorAll('a') | |
.forEach(a => a.addEventListener('click', () => console.log('CLICK!'))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment