当前位置:网站首页>Confirm() method of window
Confirm() method of window
2022-07-01 00:24:00 【Super Baa Baa】
confirm() Method is used to display a Specify the message and Confirm and Cancel buttons The dialog .
If the visitor clicks " determine ", This method returns true, Otherwise return to false.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>confirm</title>
</head>
<body>
<button onclick="myFunction()"> What to eat tonight ?</button>
<p id="demo"></p>
<script>
function myFunction(){
var x;
var food=confirm(" Pizza hut !");
if (food==true){
x=" Pizza Hut tonight !";
}
else{
x=" You don't want pizza hut tonight !";
}
document.getElementById("demo").innerHTML=x;
}
</script>
</body>
</html>

边栏推荐
- Implementation of OSD on Hisilicon platform (1)
- 2022-2028 global retro glass industry research and trend analysis report
- Cloud security daily 220630: the IBM data protection platform has found an arbitrary code execution vulnerability, which needs to be upgraded as soon as possible
- Luogu p1168 median
- BeanUtils. Copyproperties() vs. mapstruct
- Don't worry about whether you can be a coder if you don't learn English well. Learn it first
- When is it appropriate to replace a virtual machine with a virtual machine?
- 2022-2028 global single travel industry research and trend analysis report
- 76 page comprehensive solution 2022 for smart Logistics Park (download attached)
- 20220215-ctf-misc-buuctf-ningen--binwalk analysis --dd command separation --archpr brute force cracking
猜你喜欢

The programmer's girlfriend gave me a fatigue driving test

深入理解 Jetpack Compose 内核:SlotTable 系统

2022-2028 global ICT test probe industry research and trend analysis report

SSM integration process (integration configuration, function module development, interface test)

CTF tool (1) -- archpr -- including installation / use process

The girlfriend said: if you want to understand the three MySQL logs, I will let you heiheihei!

CentOS install MySQL

Analysis of 8253a register

Bugku CTF daily one question dark cloud invitation code
![[untitled]](/img/96/7f26614bbdcce71006e38ee34ab216.jpg)
[untitled]
随机推荐
[untitled]
Rust book materials - yazhijia Library
Arthas debugging problem determination Toolkit
2022-2028 global plant peptone industry research and trend analysis report
[PHP] self developed framework qphp, used by qphp framework
Explain kubernetes backup and recovery tools velero | learn more about carina series phase III
"Experience" my understanding of user growth "new users"
2022-2028 global rampant travel industry research and trend analysis report
Which is better, server rental or hosting services in the United States?
What is SRM system and how to standardize the internal procurement process of the company
leetcode 474. Ones and zeroes (medium)
20220215-ctf-misc-buuctf-ningen--binwalk analysis --dd command separation --archpr brute force cracking
What does it mean to open an account online? Is it safe to open an account online?
NATs cluster deployment
1175. Disposition des nombres premiers / échange de doigts II 104. Nombre de permutations
Excuse me, does Flink support synchronizing data to sqlserver
Techo youth 2022 academic year college open class: behind the live broadcast of Lianmai, explore how to apply audio and video technology
Vmware16 installing win11 virtual machine (the most complete step + stepping on the pit)
CentOS installation starts redis
2022-2028 global elevator emergency communication system industry research and trend analysis report