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

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

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

関連記事