<!DOCTYPE html>
<html>
<head>
<title>js17.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<!-- confirm的使用方法 点击确定返回true 取消返回false -->
<script type="text/javascript">
if(confirm("你确定访问吗")){
window.location.href = "http://www.baidu.com";
}else{
alert("再见!");
}
</script>
</head>
<body>
</body>
</html>
javascript confirm的使用
最新推荐文章于 2024-07-22 14:46:45 发布