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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -