Disable alert(); [duplicate]

Simply overwrite alert with your own, empty, function.

window.alert = function() {};

// or simply
alert = function() {};

Leave a Comment