JavaScript is a programming language whereas jQuery is a framework to help make writing in JavaScript easier. It's particularly useful for simply traversing the DOM in an HTML page. jQuery was written using JavaScript, and is a library to be used by JavaScript.
Top most used notification libraries and plugins for JavaScript and jQuery -
- Normal JavaScript
- Bootbox
- Noty
- Toastr
- AmaranJS
- Notific8
- Notie.js
- iziToast
- VEX
- Sweet Alert
- Alertify.js
- ohSnap!
I have collected the list of the most useful and beautiful notification plugins in JavaScript and jQuery for ASP.NET web applications.
Project Solution File Download Link
Click Here>>
Steps to be followed
Create an MVC web application named "SatyaprakashTop10Javascript".
1. Normal notification library and plugin.
This library is used for normal notification purposes as it was used in earlier projects.
I created a Controller class file named "HomeController.cs". Inside, I created one action result method named "Normal()".
This library is used for normal notification purposes as it was used in earlier projects.
I created a Controller class file named "HomeController.cs". Inside, I created one action result method named "Normal()".
- public ActionResult Normal()
- {
- return View();
- }
By using solution file, you can see details about the codes. I have just described the most major part.
- <script type="text/javascript">
- $(document).ready(function () {
- $("#SubmitProject").click(function () {
- if ($("#ValidateNametextbox").val() == "") {
- alert("User Name Should Not Be Empty !!");
- }
- else if ($("#ValidatePwdtextbox").val() == "") {
- alert("Password Should Not Be Empty !!");
- }
- else {
- alert("Registration Successful.");
- }
- });
- });
- </script>
OUTPUT
If isername and password fields are empty.

If both inputs are valid.
If isername and password fields are empty.

If both inputs are valid.
2. Bootbox notification library and plugin.
Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing, or removing any of the required DOM elements or JS event handlers.
In HomeController.cs,
- public ActionResult Bootbox()
- {
- return View();
- }
- In Bootbox.cshtml :
- <script type="text/javascript">
- $(document).ready(function () {
- $("#SubmitProject").click(function () {
- if ($("#ValidateNametextbox").val() == "") {
- bootbox.alert("User Name Should Not Be Empty !!");
- }
- else if ($("#ValidatePwdtextbox").val() == "") {
- bootbox.alert("Password Should Not Be Empty !!");
- }
- else
- {
- bootbox.alert("Registration Successful.");
- }
- });
- });
- </script>
OUTPUT
If Username and Password fields are empty.

If both inputs are valid.

3. toastr notification library and plugin.
Toastr is a jQuery plugin, the goal is to create a simple core library that can be easily customized and extended.
The notifications are non-blocking, the position, animation and theme are customizable.
In HomeController.cs,
Toastr is a jQuery plugin, the goal is to create a simple core library that can be easily customized and extended.
The notifications are non-blocking, the position, animation and theme are customizable.
In HomeController.cs,
- public ActionResult toastr()
- {
- return View();
- }
- <script type="text/javascript">
- $(document).ready(function () {
- $("#SubmitProject").click(function () {
- if ($("#ValidateNametextbox").val() == "") {
- toastr.warning('User Name Should Not Be Empty !!')
- }
- else if ($("#ValidatePwdtextbox").val() == "") {
- toastr.warning('Password Should Not Be Empty !!')
- }
- else {
- toastr.success('Registration Successful.')
- }
- });
- });
- </script>
OUTPUT
If Username and Password fields are empty.

If both Inputs are Valid.

4. Notie notification library and plugin.
Notie.js has an interesting design and is very flexible and customizable. It includes confirm and input features.
In HomeController.cs,
Notie.js has an interesting design and is very flexible and customizable. It includes confirm and input features.
In HomeController.cs,
- public ActionResult Notie()
- {
- return View();
- }
- <script type="text/javascript">
- $(document).ready(function () {
- $("#SubmitProject").click(function () {
- if ($("#ValidateNametextbox").val() == "") {
- notie.alert({ type: 3, text: 'User Name Should Not Be Empty !!' })
- }
- else if ($("#ValidatePwdtextbox").val() == "") {
- notie.alert({ type: 3, text: 'Password Should Not Be Empty !!' })
- }
- else {
- notie.alert({ type: 1, text: 'Registration Successful.' })
- }
- });
- });
- </script>
If Username and Password fields are empty.

If both Inputs are valid.

5. iziToast notification library and plugin.
Elegant, responsive, flexible, and lightweight notification plugin that supports Drag/Touch support with no dependencies. It is supported by all modern browsers (Tested in Chrome, Firefox, Opera, Safari, IE10+ and Edge). iziToast provides an useful events API (global and per instance) and more than 60 options.
In HomeController.cs,
Elegant, responsive, flexible, and lightweight notification plugin that supports Drag/Touch support with no dependencies. It is supported by all modern browsers (Tested in Chrome, Firefox, Opera, Safari, IE10+ and Edge). iziToast provides an useful events API (global and per instance) and more than 60 options.
In HomeController.cs,
- public ActionResult iziToast()
- {
- return View();
- }
- <script type="text/javascript">
- $(document).ready(function () {
- $("#SubmitProject").click(function () {
- if ($("#ValidateNametextbox").val() == "") {
- iziToast.error({
- title: 'Error',
- message: 'User Name Should Not Be Empty !!',
- });
- }
- else if ($("#ValidatePwdtextbox").val() == "") {
- iziToast.error({
- title: 'Error',
- message: 'Password Should Not Be Empty !!',
- });
- }
- else {
- iziToast.success({
- title: 'OK',
- message: 'Registration Successful.',
- });
- }
- });
- });
- </script>
If Username and Password fields are empty.

If both inputs are valid.

6. VEX notification library and plugin.
VEX is a modern dialog library which is highly configurable and easy to style, developed by HubSpot.
With a cool design, good performance this plugin gets the third place in the top.
It has a clear and simple API, works on mobile devices, and can be customized to match your style in seconds.
In HomeController.cs,
VEX is a modern dialog library which is highly configurable and easy to style, developed by HubSpot.
With a cool design, good performance this plugin gets the third place in the top.
It has a clear and simple API, works on mobile devices, and can be customized to match your style in seconds.
In HomeController.cs,
- public ActionResult VEX()
- {
- return View();
- }
- <script type="text/javascript">
- $(document).ready(function () {
- $("#SubmitProject").click(function () {
- if ($("#ValidateNametextbox").val() == "") {
- vex.dialog.alert({
- message: 'User Name Should Not Be Empty !!',
- className: 'vex-theme-flat-attack'
- });
- }
- else if ($("#ValidatePwdtextbox").val() == "") {
- vex.dialog.alert({
- message: 'Password Should Not Be Empty !!',
- className: 'vex-theme-flat-attack'
- });
- }
- else {
- vex.dialog.alert({
- message: 'Registration Successful.',
- className: 'vex-theme-os'
- });
- }
- });
- });
- </script>
If Username and Password fields are empty.

If both inputs are valid.













Muthu KumarPosted Jan 4, 2019, 9:07 PM
Very nice article. Thanks for sharing..
Farhan AhmedPosted Jul 24, 2018, 4:57 AM
Thank you for sharing....
Tridip BhattacharjeePosted Aug 16, 2017, 5:14 AM
Tinybox lib name is not in the list.
Mohsin AzamPosted Aug 16, 2017, 1:22 AM
Nice article,i will prefer to use toastr by john papa.