都不来?我来吧 :)
<object id=hhctrl classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
无提示关闭
<input type=button onclick=hhctrl.Click()>
<object id=hhctrl classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</object>
无提示关闭
<input type=button onclick=hhctrl.Click()>
<param name="Command" value="Close">
</object>
<SCRIPT language="JavaScript">
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-800)/2))
a.location = window.location.href
window.opener=null
hhctrl.Click()
//window.close()
}
toFull();
</SCRIPT>
<html>
<body>
//在这儿填写具体内容
<input type=button value=关闭 onclick=window.close()>
</body>
</html>是这样吗?可没关掉啊,两个窗口都在啊,我哪里错了吗?
前加一句:
window.focus()
<param name="Command" value="Close">
</object>
<SCRIPT language="JavaScript">
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-800)/2))
a.location = window.location.href
a.opener.focus()
hhctrl.Click();
}
toFull();
</SCRIPT>
<html>
<body><input type=button value=¹Ø±Õ onclick="window.close()">
</body>
</html>
<param name="Command" value="Close">
</object>
<SCRIPT language="JavaScript">
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600,top="+((screen.height-600)/2)+",left="+((screen.width-800)/2))
a.location = window.location.href
a.opener.focus()
hhctrl.Click();
}
toFull();
</SCRIPT>
<html>
<body><input type=button value=关闭 onclick="window.close()">
</body>
</html>