<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<title>无标题文档</title>
</head>
<scriptlanguage="JavaScript1.2"type="text/JavaScript1.2">
vartest=0;
functiontestShowWindow()
{
//禁用了activex控件你就不记录哈
if(test)
{
if(!test.closed){
alert('窗口弹出了');
test.close();
}else{
alert('没有弹出噶');
}
}
//这个你加到没有弹出时再弹出看看呢
test=window.open('http://sc.jb51.net','test','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=400,height=600,left=100,top=100');
//这里你可以记录哈(可在弹出时记录)
}
</script>
</head>
<body>
<ahref="#"onClick="javascript:testShowWindow();"><inputtype="button"name=""value="弹出窗口"onClick="javascript:testShowWindow();"></a>
<body>
</body>
</html>
|