jQuery

jQuery Page Refresh / Reload Examples

Wondering how to reload / refresh page using jQuery? In this article, I am going to share a very easy way to use jQuery to refresh page.

How to Reload / Refresh Page using jQuery

The actual code that helps you reload page using jQuery is “location.reload();”. You can now use this code within a click event of a button to refresh the page when a button is clicked.

Example: Refresh / Reload page using jQuery

<html>
<head>
<title>Example to use jQuery for Page Refresh</title>
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
</head>

<body>

<input type="submit" name="refresh_page" id="refresh_page" value="Refresh Page with jQuery" />

<script type="text/javascript">

$('#refresh_page').click(function() {

	location.reload();

});

</script>
</body>
</html>
That’s it!

Do you know of any other ways to make page refresh/reload using jQuery? Feel free to suggest by commenting below.

Share your thoughts, comment below now!

*

*