Full Bootstrap-Based Alert for JavaScript | Bootalert

Looking for a javascript alternative to the javascript alert() and prompt() functions? Bootalert is a small jQuery plugin that enables you to create responsive, customizable, customizable, and awesome dialogs using Bootstrap 4.

bootstrap message box, bootstrap alert example, bootstrap alert javascript, bootstrap alert popup, bootstrap success message popup, bootstrap alert popup jquery

Javascript Library for Popup Messages on a Web Page | notification.js

How to make use of it:

1. Load the minified version of the Bootalert plugin after jQuery.

<link rel="stylesheet" href="/path/to/cdn/bootstrap.min.css" />
<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="/path/to/cdn/bootstrap.min.js"></script>
<script src="/path/to/bootalert.min.js"></script>

2. Create a primary alert box.

bootalert('Welcome To BootAlert')

3. Create an alert box with a customized title.

bootalert('WebCodeFlow','I am Bootalert')

4. Add a customized confirm button to the alert box.

// 'danger' button
bootalert('WebCodeFlow','I am Bootalert','danger')

// 'primary' button
bootalert('WebCodeFlow','I am Bootalert','danger')

// custom button text
bootalert('WebCodeFlow','I am Bootalert','danger','Ok')

5. Create a prompt dialog box.

bootprompt('Enter Email','primary','Get Email');

// output 
function bootrun(){
  console.log('Your Email is '+ window.bootval);


bootalert(‘Hello World’)Header Text in Alert
bootalert(‘Hello World’,’I am Bootalert’)Header, Message in Alert
bootalert(‘Hello World’,’I am Bootalert’,’primary’)Header Text, Message, button theme in Alert
bootalert(‘Hello World’,’I am Bootalert’,’primary’,’Ok’)Header Text, Message, button theme, Button Name in Alert
bootprompt(‘Enter Name’,’primary’,’Get Name’)Get InputHeader Text, button theme, Button Name in Alert

Pure Bootstrap 4 Based JS Alert, customize javascript alert box CSS, Bootstrap Alert Box, Bootalert Plugin/Github, bootstrap alert on button click

See Demo And Download

Official Website(rohit-chouhan): Click Here

This superior jQuery/javascript plugin is developed by rohit-chouhan. 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…


Bootstrap 4 Sidebar Menu Responsive Template | MDB

Bootstrap Side Navbar – Responsive sidebar template based on the Bootstrap 4 framework. An easy-to-use, totally responsive, Google Material Design impressed aspect navigation for modern web app…


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…


Bootstrap 5 Treeview Dynamically Collapsible | bs5treeview

Bootstrap 5 Tree View is a very simple plug-in for creating a basic and elegant Treeview using BS5. For use with Bootstrap 5, the attributes have been…

Leave a Reply

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