Method 1:
$('#someid').click(function() {
location.reload();
});
The reload() function takes an optional Boolean parameter that can be set to true to reload from the server rather than the cache. The parameter defaults to false, so by default the page reloads from the browser's cache.
Method 2-6:
history.go(0); location.reload(); history.go(0); location.href = location.href; location.href = location.pathname; location.replace(location.pathname)
No comments :
Post a Comment
Dare to Ask?