Code Snippet posted by:
Poster | Posted on: 3/1/2009 | Category:
JavaScript Codes | Views: 1895 | Status:
[Member]
|
Alert Moderator
To get the confirmation in JavaScript, use confirm function available in JavaScript.
var v = confirm('Are you sure?");
if user click OK, v will be true otherwise false.