本片文章主要介绍html如何关闭当前网页以及鼠标特效,希望可以帮到大家。
代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>document</title>
</head>
<body>
<script type="text/javascript">
function shut(){
window.opener=null;
window.open('','_self');
window.close();
}
</script>
</head>
<body>
<br><br><br>
<center><input type="button" name="submit2" value="关闭窗口" title="关闭窗口" onclick="shut()"/>
</center>
</body>
</html>
相关推荐:
js实现关闭网页的代码
html关闭网页弹出窗口代码_html/css_web-itnose
不提示直接关闭网页窗口的js示例代码_javascript技巧
以上就是html如何关闭当前网页的详细内容。