nopopup
v1.0.0
Published
Prevent popup boxes in JavaScript
Downloads
1
Maintainers
Readme
⚙️ Installation
npm i nopopup
CDN Links:
- https://cdn.jsdelivr.net/npm/nopopup
- https://www.unpkg.com/nopopup
📖 Usage
◉ Import
// ES6
import nopopup from "nopopup";
// commonjs
const nopopup = require("nopopup");
◉ Disable all popup boxes
import nopopup from "nopopup";
nopopup();
// Test it!
alert('hello');
confirm('world');
◉ Disable specific popup boxes
import nopopup from "nopopup";
nopopup(["alert"]);
// Test it!
alert('hello');
confirm('world');