Thanks that works, but I have tried differently like this
function DeleteNode(item, argument) {
var node = argument;
if (confirm(" Are you sure to delete node? \n" +
node.getText() ))
{
node.remove();
item.setAutoPostBack(true);
}
else
{
item.setAutoPostBack(false);
}
}