How to get confirmation in JavaScript?

Posted by Poster under JavaScript category on | Views : 3200
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.

Comments or Responses

Login to post response