how to refresh/reload a page using jQuery?

A simple method reload or refresh the webpage using jQuery.

var autoRefresh = setInterval(
function loadPage() {
   location.reload();
};
$(document).ready(function() {
  setTimeout("loadPage()", 10000); .
});
Simple HTML tag also serve our requirement.
<meta http-equiv="refresh" content="5">
Share this nice post:

One thought on “how to refresh/reload a page using jQuery?

Leave a Reply

Your email address will not be published. Required fields are marked *