C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Confirmation Dialog Box Using Javascript
WhatsApp
Vishvajeet Pawar
4y
8
k
0
2
25
Blog
Here I will show how to show Confirmation Dialog Box Using Javascript?
<script type=
"text/javascript"
>
function
ConfirmationBox() {
var
Yes= confirm(
"User want's to continue..?"
);
var
check =
new
Boolean(Yes);
if
(check ==
true
) {
alert(
'want to continue Yes'
);
return
true
;
}
else
{
alert(
'user dont continue'
);
return
false
;
}
}
</script>
<div>
<input type=
"button"
value=
"Click Me"
onclick=
"ConfirmationBox();"
/>
</div>
Here I Have create javascript function such as ConfirmationBox() and that function call On button Click as onclick event then
Click on Click Me Button show as
And after ok Click then
Or cancel button click on
Confirmation Dialog Box Using Javascript
Recommended related topics
Membership not found