用 window.open()打开它或者:
window.opener=null
window.close() 或者: <OBJECT id=close type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="CLOSE">
</object>
<input type=button onclick="close.Click()" value="关闭窗口">
window.opener=null
window.close() 或者: <OBJECT id=close type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="CLOSE">
</object>
<input type=button onclick="close.Click()" value="关闭窗口">
window.close();这个好。
<head>
<title>直接关闭IE浏览器</title>
</head>
<body>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WB width=0></OBJECT>
<input type="button" value="直接关闭" onclick="WB.ExecWB(45,1)">
<input type="button" value="一般的关闭窗口" onclick="window.close();">
</body>
</html>前几天我发了这个帖子,不过有人回复说不管用,也有说可以用的。
请问谁对这个类比较明白的?
WB.ExecWB(45,1)中,将45改成别的值,会有不同的效果。
不过我还没有怎么试过。
有感兴趣的,可以先试一下1到9之间的数,有几个可用的。
function newwin(winurl)
{
window.open(winurl,"LogIn","targe=_self,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width=465,height=200,top=80,left=80");
this.opener=null;
this.close();
}
</script>
<BODY onload="newwin('Login.htm')">