A Responsive, Customizable, and Accessible JavaScript Popup Boxes | AsgarAlert

AsgarAlert is a small JS popup box replacement library that helps you create customizable, animated, accessible dialogs/confirmation and various types of toast notifications on a web application.

How to make use of it:

1. Just insert the principle JavaScript asgar-alert.js into the document.

<script defer src="asgar-alert.js"></script>

2. Create a primary alert field on the web page.

  title: "Alert Message", 
  right: "Okay" 
}).then(() => {

3. Create an affirmation dialog with callbacks.

  title: "Are you sure?",
  message: "Want to log out?",
  details: "You will not able to recover this action",
  left: "Cancel",
  right: "Yes,Iam sure",
.then(() => {
  console.log("right button clicked");
.catch(() => {
  console.log("left button clicked");

4. Create toast notifications.


  // message
  "I am a success message", 

  // info/warning/success/error

  // details
  "After 5 seconds it will be gone",

  // duration in ms

Browser compatibility

IE11*EdgeChromeFirefoxSafariOperaAndroid Browser*UC Browser*

Easy Alert & Notification Dialog Library, AsgarAlert Plugin/Github, css notification animation, notification css

See Demo And Download

Official Website(asgaraliyev): Click Here

This superior jQuery/javascript plugin is developed by asgaraliyev. For extra Advanced Usage, please go to the official website.

Related Posts


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…


Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…


How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…


Modern Mobile Touch Slider With Acceleration Transitions | Swiper

Swiper is the most modern free mobile touch slider with accelerated device transitions and amazing original behavior. It is intended for use in mobile websites, mobile web…


Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

Leave a Reply

Your email address will not be published. Required fields are marked *