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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -