javascript - Passing confirmation to an alert in java script -
i writing function delete records. on deletion there alert message 'yes' , 'no' user needs click delete record.
the problem want pass yes confirmation without manually clicking on yes. how can this. please provide pointers.
not saying should following, here's how 1 might try bypass confirmation dialogs.
replace confirm
function own function returns true
.
var realconfirm = window.confirm; window.confirm = function () { return true; } deleterows(); window.confirm = realconfirm;
Comments
Post a Comment