I have many JavaScript functions for a program, all of which contain alert
s notifying the user of certain things. I wanted to give the user the option to ban all of those alerts, without having to rewrite all of the functions without the alerts. Is there a way to ban alert
? Maybe something like this:
<button onclick = "alertBan()">Alert Ban</button>
function alertBan(){
alerts = false;
}