aspdotnet-suresh offers articles and tutorials,csharp dot net, articles and tutorials,VB.NET Articles,Gridview articles,code examples of 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

jQuery Show Notification Bar on Top of the Page with Example

Jul 4, 2016

Here I will explain how to use
jQuery to show notification bar on top of the page with example or jQuery show notification bar at top with example or jQuery add notification bar to website with example. By using jQuery and css properties we can show notification bar at top of the page.

To show the notification bar at top of the page in jQuery we need to write the code like as shown below

<html xmlns="">
<title>jQuery Show Notification Bar At Top of Page</title>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(function () {
$("#btnClose").click(function (evt) {
$("#hrefshownotfify").click(function (evt) {
<style type="text/css">
background-color: #EB5E00;
color: white;
font-weight: bold;
position: absolute;
width: 100%;
top: 0px;
left: 0px;
text-align: center;
border-bottom-width: 2px;
border-bottom-color: #666666;
border-bottom-style: solid;
text-align: center;
padding: 10px;
<div id="notfiydiv" class="notifybar">
<label>jQuery Notification Bar on Top of the Page</label>
<br />
<input type="button" id="btnClose" value="Close" />
<div style="margin-left:50%">
<a href="" id="hrefshownotfify">Show Notification Bar</a>


Following is the demo to show notification bar at top of the page using jQuery.

jQuery Show Notification Bar on Top of the Page

If you enjoyed this post, please support the blog below. It's FREE!

Get the latest,, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email.

subscribe by rss Subscribe by RSS subscribe by email Subscribe by Email


Guru said...

thanks for the article. I dont want the pop up on the page loading. ie, when you load the page itself, the pop up is coming. i want to show pop up only when I click button

Anonymous said...


anji said...


Give your Valuable Comments

Note: Only a member of this blog may post a comment.

© 2015 All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.