Introducing KAlert.js — A Lightweight Modern Alert Dialog Library for JavaScript 🚀
While working on my frontend projects, I often needed a clean and modern alternative to the default browser alert dialogs.
The native browser alert:
alert ( " Hello world " );
Enter fullscreen mode
Exit fullscreen mode
is functional, but it looks outdated and isn't customizable.
So I built KAlert.js — a lightweight, animated, Promise-based alert dialog library that works instantly via CDN with zero setup required.
✨ Features
KAlert.js provides:
✅ Animated modal dialogs
✅ Promise-based confirm dialogs
✅ Font Awesome icon support (auto-loaded)
✅ Blur background overlay
✅ Success / error / warning / info alert types
✅ Zero dependencies
✅ CDN-ready usage
✅ Lightweight and fast
📦 Install via CDN (No setup required)
Just include one script:
<script src= "https://cdn.jsdelivr.net/gh/TutorialsAndroid/[email protected]/kalertdialog.js" ></script>
Enter fullscreen mode
Exit fullscreen mode
That’s it.
No…