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

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -