Press "Enter" to skip to content

Beautiful Alert Box Messages For Your Website | Cute Alert

Cute Alert is An open-source JavaScript library with the purpose of providing beautiful alert box messages for your website. This dialog popup library from Vanilla JavaScript for creating alert notifications, confirming popups, and uploading messages to the web app.

custom javascript alert and confirm dialog boxes, fancy alert box in jquery, javascript toast message example, fancy alert box in javascript

How to make use of it:

1. To get began, load the Cute Alert’s information within the doc.

<link rel="stylesheet" href="style.css" />
<script src="cute-alert.js"></script>

2. Create alert notification containers and decide the notification sort as follows:

cuteAlert({
  type: "success",
  title: "Success Title",
  message: "Success Message",
  buttonText: "Okay"
})

cuteAlert({
  type: "error",
  title: "Error Title",
  message: "Error Message",
  buttonText: "Okay"
})

cuteAlert({
  type: "warning",
  title: "Warning Title",
  message: "Warning Message",
  buttonText: "Okay"
})

cuteAlert({
  type: "info",
  title: "Info Title",
  message: "Info Message",
  buttonText: "Okay"
}).then(() => {
  // do something
})

3. Create a confirm dialog.

cuteAlert({
  type: "question",
  title: "Confirm Title",
  message: "Confirm Message",
  confirmText: "Okay",
  cancelText: "Cancel"
}).then((e)=>{
  if ( e == ("Thanks")){
} else {
    alert(":-(");
  }
})

4. Create a toast message and decide the timeout in ms.

cuteToast({
  type: "success", // or 'info', 'error', 'warning'
  message: "Toast Message",
  timer: 5000
})

Elegant Alert/Confirm/Toast Dialog Box, Cute Alert Plugin/Github, toast notification examples, best alert message jquery, custom alert dialog in webΒ Cute alert box


See Demo And Download

Official Website(gustavosmanc): Click Here

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

Be First to Comment

    Leave a Reply

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