JavaScript Alert, Confirm, And Toast With Library | asteroid-alert

Building Asteroid Alert Library With the JavaScript library, you can replace the traditional JavaScript alert, confirmation, and notification popups with pure JS.

How to make use of it:

1. Place the asteroid-alert library on your HTML web page.

<script src="./asteroid-alert-min.js"></script>

2. Create an alert dialog utilizing the $alert(text, buttonColor) technique.

$alert('', '#ff0000');

3. Create an affirmation dialog utilizing the $confirm(text, buttonColor) technique.

$confirm("Do you want to delete?", "#E74C3C")
  .then(() => {
    // do something

4. Create an Android-like toast popup utilizing the $toast(text, buttonColor) technique.

$toast("Deleted", "#E74C3C");

5. Create an alert box.

$alert("Alert Message", '#E74C3C');

Minimal Alert, Confirm, And Toast Dialog, asteroid alert Plugin/Github

See Demo And Download

Official Website(khanmdsagar): Click Here

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

Leave a Comment