I have a html page. In the body of the page I am calling onload event which calls javascript function to open a pop up window. here is the code:
onload
Use the "closed" property: if a window has been closed its closed property will be true. https://developer.mozilla.org/en-US/docs/Web/API/Window/closed