Confirm JS

HTML

<button id="save" type="button">Save</button>

JavaScript

$('#save').on('click', function () {
    var shouldSave = confirm('Make your choice');
   
    if(shouldSave) {
        alert('Do saving');
    }
    else {   
        alert('Not saving'); 
    }
});