If I reset window.alert is some other function, is there a way to restore it without the first “save”?
For instance:
window.alert = function() { };
After that, is there a way to restore window.alert () to what it was before? (btw: request only for "predefined" DHTML objects - not for random js objects)
source share