Monday, April 15, 2013

Relaod/refresh page with Javascript Jquery

$('#something').click(function() {
location.reload();
});
the reload() function takes an optional 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.

No comments:

Post a Comment