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