无提示关闭窗口代码如下:
closeWindow.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>无提示关闭窗口</title>
<style type="text/css">
input[type=button]{border: 1px solid lightgrey}
</style>
</head>
<body>
<input type="button" name="Submit2" value="关闭窗口" title="关闭窗口" onclick="shut()"/>
<script type="text/javascript">
function shut(){
window.opener=null;
window.open('','_self');
window.close();
}
</script>
</body>
</html>