I am working on a website using wide javascript. The code I'm working on also depends on other large javascript libraries. The fact is that somewhere in these libraries a warning window appears.
I was wondering if there is a way to disable the javascript warning window on the fly and enable it again later.
thank
Save the old function alertfor the variable.
alert
_alert=alert;
Then install the old alertor nullcustom function.
null
alert=function(){}; /*or*/ alert = null;
To restore the original version alert, simply undo step 1.
alert=_alert
Source: https://habr.com/ru/post/1740029/More articles:Is mspec better with or without nunit? - nunitwpf: getting combobox value - wpfSpring MVC works with web designers - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1740027/can-i-use-monos-aot-feature-to-natively-pre-compile-net-dllsexes-to-make-them-harder-to-reverse-engineer&usg=ALkJrhjted3wrRr1de1QtzpG1zNEZTljNQКаков самый быстрый способ рекурсивно добавлять каталоги в $LOAD_PATH в рубине? - rubymono --aot with MinGW: неизвестный псевдооператор: `.local ' - .netCan base64 encoding be applied to multibyte utf-8 characters? - base64How to make a connection that removes values? - sqlReadObject DataContractJsonSerializer exception - jsonCodeigniter: how to handle direct link to controller / function / param? - codeigniterAll Articles