Prevent popup boxes in JavaScript
npm i nopopup
CDN Links:
// ES6
import nopopup from "nopopup";
// commonjs
const nopopup = require("nopopup");
import nopopup from "nopopup";
nopopup();
// Test it!
alert('hello');
confirm('world');
import nopopup from "nopopup";
nopopup(["alert"]);
// Test it!
alert('hello');
confirm('world');