无提示,直接关闭IE

来源:互联网 发布:手持式数据终端器 编辑:程序博客网 时间:2024/06/05 17:33
<script type="text/javascript"> 
function cl() 

window.opener
=null
window.open("",'_self',""); //加上这一句,对IE7有效
window.close(); 


</script> 
</head> 

<body> 
<input type="button" onclick="cl()" value="close"> 
</body>