本文摘自PHP中文网,作者墨辰?R,侵删。
本片文章主要介绍HTML如何关闭当前网页以及鼠标特效,希望可以帮到大家。代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <!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如何关闭当前网页的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
如何使用Html制作一个简洁的提交表单(代码详解)
Html的有序列表、无序列表与定义列表应该如何使用
Html <!--...-->标签怎么用
Html表格怎么做
Html怎么给表格里字体改颜色
css写在Html里面吗?
怎么在Html增加css
在Html里select标签有哪些用法
Html meter标签怎么用
Html中使用css的方法有哪几种
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » HTML如何关闭当前网页