js 无提示关闭窗口(IE)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>No Tip Close Win</title>
<script language="javascript" type="text/javascript">
function closeWin(){
	window.open('','_top');
	window.top.close();
}
</script>
</head>

<body>
<input type="button" value="Close Win" onclick="closeWin()" />
</body>
</html>
posted @ 2011-03-19 10:43  标准小兵  阅读(275)  评论(0编辑  收藏  举报