I’m working on a website using extensively javascript. The code I’m working on also rely on other big javascript libs. The thing is that somewhere in these libraries, some alert box are poping.
I was wondering if there are some way to disable the javascript alert box on the fly and re-enable it later.
Thanks
Save the old
alertfunction, to a variable.And then set the old
alertto eithernulla custom function.To restore the original version of
alertsimply reverse step 1.