window.close()

1window.opener=null;
2window.open("","_self");
3window.close();

onclick return false;

IE5.5以下

1<object id="close" type="application/x-oleobject"
2  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
3    <param name="Command" value="CLOSE">
4</object>
5<input type="button" onclick="close.Click()" value="关闭窗口">

延伸阅读


Tags: JavaScript

Published on 2011-04-26

ON THIS PAGE