open window

<SCRIPT LANGUAGE="JavaScript">
<!--
var subWin = window.open(" http://www.g.cn","subWin","height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
var myInterval = null;
function checkSubWin(){
    if(!subWin || subWin.closed){
        if(myInterval){
            clearInterval(myInterval);
        }
        alert(0);
        // 在这里调用你的函数
    }
}
myInterval = setInterval("checkSubWin()", 1000);

//-->
</SCRIPT>

你可能感兴趣的:(JavaScript)