Disable a built-in function in javascript (alert) -
simple: want disable/overwrite alert().
can this?
more importantly, right this?
what strict mode?
yes, can disable or overwrite alert(). no, it's not right it, except in bizarre , limited situations.
disable:
window.alert = function() { }; override:
window.alert = function(text) { /* */ };
Comments
Post a Comment