Mavengers
Developer's Blog
Tuesday, May 27, 2014
Javascript Confirmation box
var answer = confirm('Are you sure you want to delete this?');
if (answer) {
console.log('yes');
}
else {
console.log('cancel');
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment