关于确认是否关闭框和页面跳转的写法
<!doctype html> <html lang="en"> <script> window.alert('haha'); window.confirm('你确定要关闭吗?'); //确认是否关闭框 console.log(window.navigator.cookieenabled); //true window.location.href = 'https://www.baidu.com/'; //页面跳转 </script> <head> <meta charset="utf-8"> </head> <body> </body> </html>
确认关闭框:
如对本文有疑问, 点击进行留言回复!!
MFC的静态库.lib、动态库.dll(包含引入库.lib)以及Unicode库示例
CTF 刷题记录(一) 白云新闻搜索(手动与自动化SQL注入)
javascript如何使用函数random来实现课堂随机点名方法详解
网友评论