Confirm to delete object - Node.js Object

Node.js examples for Object:Object Operation

Description

Confirm to delete object

Demo Code

function confirmDelete(obj) {   
    var msg = "Are you sure you want to delete this " + obj + "?";
    ans = confirm(msg);//from  w  w w.j a  va  2 s.  c  o m
    if (ans) {
        return true;
    } else {
        return false;
    }
}

Related Tutorials