<html><head><script type=”text/javascript” >function closeWin(){//在此处添加代码 if( ){window.close();} } </script> </head> <body> <input type=”button” value=”关闭窗口” /> </body> </html>