无提示关闭一个窗口

IE5:

<OBJECT id="clo" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<PARAM name="Command" value="Close"></OBJECT>
<button onclick="clo.Click()"><font face="webdings">r</font></button>

IE5.5+

1.

<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
<input name=Button onClick=document.all.WebBrowser.ExecWB(45,1) type=button value=关闭>

2.

opener=null;
window.close();

<input type="button" onClick="window.opener="xxx";window.close();" value="IE6最简单的无提示关闭窗口" >

你可能感兴趣的:(提示)