Electron Window Open and log Close Event
<p>I'm using Electron for a Desktop Application. I'd liked to open a different Window by a button on main window (index.html).</p>

<p>Therefore, I found <strong>BrowserWindow</strong> from the Electron API. But I'm totally new in Electron, and I try to get to know the whole Framework.</p>

<p>I have a "a"-link Tag on main window, which is my button. This should open a new defined Electron Window. Maybe by an onclick event?</p>

<p>If the new opened window is closed, on main window a defined Javascript Event like (reload();) should triggered.</p>

<p>So my question is. How is the best way to open a Window and how can i "log" in main window, when the new window is closed an fire my JS-Event.</p>

<p>Thanks</p>