3秒後にウインドウを自動的に閉じる検証プログラムです。
window.onload = function(){ try{ $timer = setTimeout("window.close()",3000); }catch($error){ alert("error!"); }finally{ $timer = setTimeout("window.open('about:blank','_self')",3000); } }