Loading ...

How to refresh a page using jQuery | CodeAsp.Net

How to refresh a page using jQuery

 /5
0 (0votes)

In this blog I will explain how to Refresh a Page using jQuery.I have used location.reload() for that .Below is the code snippet:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title></title>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

</head>

<body>

<input id="btnTest" type="button" value="Test" />

</body>

<script type="text/javascript">

$(function()

{

$('#btnTest').click(function()

{

location.reload();

});

});

</script>

</html>

 

Happy Reading.!

 

Comments (no comments yet)

Top Posts