How to get confirmation in JavaScript?

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