More often than not you want to create a child window and want to capture its events. This example simply captures its close event. var childWindow = window.open("new ...