17
04
2009
js判断是否为弹出窗口
bigCat Posted in JavaScript - 2 Commentsfunction suicide(){window.opener.focus();window.close();}
if (window.opener == null) {
window.location="/";
} else {
window.resizeTo(800, 500);
setTimeout('suicide()', 10000);
}