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

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -