New window with beforeUnload handler.
You should see an alert with "beforeUnload" if you try to close the window.