Refresh the current web page using jQuery

We can use the document.location.reload() function to refresh or reload the current web page in jQuery.

<script type="text/javascript">
$(function() {
$('#btnClick').click(function() {
document.location.reload();
})
})
</script>

You can also redirect on the same page using following code in C# (Server side) :

Response.Redirect(Request.RawUrl);

You can also refresh the page in the javaScript by using window.location.href property, as shown below:

<script type="text/javascript">
$(function() {
$('#btnClick').click(function() {
 window.location.href= window.location;
})
})
</script>

Demo

Click the button to reload the current page: