前提:此页面是新打开页面 例如: a页面代码 <a href="_blank" href="b.html">firefox window.close()</a> b页面代码如下 function close(){ window.opener = null; window.open('','_self'); window.close(); } <input id="close" name="close" type="button" value="关闭" οnclick="close();"/>