TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Conform Message In Java Script
Delpin Susai Raj
Aug 23
2016
Code
853
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<html>
<head>
<script type=
"text/javascript"
>
function
disp_confirm() {
var
r = confirm(
"Press a button"
);
if
(r ==
true
) {
document.write(
"You pressed OK!"
);
}
else
{
document.write(
"You pressed Cancel!"
);
}
}
</script>
</head>
<body> <input type=
"button"
onclick=
"disp_confirm()"
value=
"Click"
/> </body>
</html>
conform
ok
cancel
java script