Aspdotnet-Suresh

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

jQuery Refresh Page or Reload Page in jQuery

Nov 17, 2013
Introduction

Here I will explain how to refresh page in
jQuery or reload page in jQuery or refresh or reload webpage using jQuery.


To refresh or reload webpage in jQuery we need use location.reload() for that need to write code like as shown below


<script type="text/javascript">
$(function() {
$('#btnClick').click(function() {
location.reload();
})
})
</script>
If you want see it in complete example need to write the code like as shown below


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jQuery Refresh or Reload web Page</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript">
$(function() {
$('#btnClick').click(function() {
location.reload();
})
})
</script>
</head>
<body>
<div>
<input type="button" id="btnClick" value="Refresh" />
</div>
</body>
</html>
Live Demo



     

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

Get the latest Asp.net, C#.net, 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

5 comments :

Vikram Shah said...

are both the same , window.location.reload() and window.reload() or when to use when.

Cross Platform Android development Houston TX said...

Great Info. Thanks for the your effort. Appreciate it.

azad ratn said...

Hi Suresh,
I need two things and I want you do that favour which will help me and other user/visitors of your site

1. auto scroll in any control in asp.net like google or other e-commerce sites.
2. payment gateway by CCAvenue, Paypal, and others.... that will use Credit Card, Debit Card, NetBanking and others....

Ayush said...

sir can you help me in integrating payment gateway in asp.net C#

Anonymous said...

sir can you help me in integrating payment gateway in asp.net C#

Give your Valuable Comments

Other Related Posts

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