Documentation

onBeforeDelete

fires before item deleting

boolean onBeforeDelete(id id){ ... };

Parameters

ididid of item in question

Returns

booleanreturning false will prevent item deleting

Example

some.attachEvent("onBeforeDelete", function(id){
    //... some code here ... 
    //return false to block operation
    return true;
});

See also

Back to top