jQuery Plugin to Show Toast Notification – jToast

Modern, lightweight and easy to use jQuery plugin to show toast notification (alert messages) on the web page / web apps with cool CSS animations.

The plugin offers to trigger animated toast notification on different JavaScript events to notify the users about the process.

Plugin Overview

Plugin: jToast
Author: Leonard Ginters
Licence: MIT Licence
Published: January 17, 2024
Repository: Fork on GitHub
Dependencies: jQuery 2.3.1 or Latest version

File Type: zip archive (HTML & JavaScript)
Package Size: 4.24 KB

How to Use Plugin to Show Toastr Notification :

1. Load the jQuery and jtoast.js file into your HTML page.

<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.4.0.min.js"></script>

<!-- jtoast Js -->
<script src="js/jtoast.js"></script>

2. After that, create an event handler in DOM , such as button or any object you want.

<button id="btn1">Click me</button>

3. Now, call the plugin in your functions to trigger the notification on event. (The example below show the notification on click event).


   showToast('This a very example toast. Cool, right?');

4. All available options to customize the looking of the toast notification bar.

showToast('Message for notify goes here!', {
  duration: 5000, // The time interval after notification disappear 
  background: '#20b2aa', // Background color for toast notification 
  color: '#f1f1f1', //Text color 
  borderRadius: '15px' //Border Radius 

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...

Please Rel0ad/PressF5 this page if you can't click the download/preview link