Tuesday, July 10, 2012

Reload / Refresh Page in jQuery

Here is the code to refresh the page when u click on a button component. Its just like you press "F5" button to refresh page.
=======================Code begins =========================
<!doctype html>
<html lang="en-us">
<title>Reload/Refresh a Page in jQuery</title>
<script type="text/javascript" src=""> </script>

<script type="text/javascript">
$(document).ready(function() {
$('#Refresh').click(function() {
$("p").append("<strong>Now Refreshing page..</strong>");
<p>Welcome !!</p><br/>

<input id="Refresh" type="Button" value="Refresh" />

=======================Code Ends =========================

1 comment:

Andi Anderson said...

I truly like to reading your post. Thank you so much for taking the time to share such a nice information.
html reference

Post a Comment