Simple: I want to disable/overwrite alert().
alert()
Can I do this?
More importantly, is it right to do this?
What about strict mode?
Yes, you can disable or overwrite alert(). No, it's not right to do it, except in some bizarre and limited situations.
Disable:
window.alert = function() { };
Override:
window.alert = function(text) { /* do something */ };