iegik
11/4/2016 - 1:08 PM

Expose objects to popup window

Expose objects to popup window

t=this.open();
t.addEventListener('DOMContentloaded',(e)=>{
  console.log(this, e);
  e.target.close();
});
t.dispatchEvent(new CustomEvent('DOMContentloaded'));