<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
if (confirm("Are you sure?")) {
alert("I'm so glad you're sure! ");//点击确定按钮
} else {
alert("I'm sorry to hear you're not sure. ");//点击的取消按钮
}
alert("hello confirm");//只有确定按钮
var result = prompt("What is your name? ", "");
if (result !== null) {
alert("Welcome, " + result);
}
//显示“打印”对话框
window.print();
//显示“查找”对话框
window.find();
</script>
</body>
</html>
Bom提示框
最新推荐文章于 2023-05-17 09:35:47 发布