Created
November 4, 2016 13:08
-
-
Save iegik/0a15788b500263b8925d096cb19a840d to your computer and use it in GitHub Desktop.
Expose objects to popup window
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
t=this.open(); | |
t.addEventListener('DOMContentloaded',(e)=>{ | |
console.log(this, e); | |
e.target.close(); | |
}); | |
t.dispatchEvent(new CustomEvent('DOMContentloaded')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment