I have a piece of code that launches another page in an external window.
var myOpenWindow = window.open(...);
I manage this window throughout the applications life cycle and once the forum is completed my managing state closes this window.
However, the issue I am facing is that if the user hits f5
for a hard refresh the window is still open after the main page loads.
At first I thought I could override the window.open
to track the state of open windows from my app in a global variable. However, I overlooked the fact that on an f5
reset my global is lost.
This seems like a simple problem, but the solution has evaded me. Is there anyway to close a window opened by window.open
when the parent is refreshed?