JavaScriptでウィンドウが開かない

ウィンドウが閉じていても、windowオブジェクトが残っている時がある。

if (windowObj != null && windowObj.closed) {
    windowObj = null;
}
目次