Thursday, 18 April 2019

refresh a page with jQuery

here we provide code for refresh a page with jQuery $('#something').click(function() {
    location.reload();
});



The reload() function takes an optional parameter that can be set to true to force a reload from the server rather than the cache. The parameter defaults to false, so by default the page may reload from the browser's cache.

No comments:

Post a Comment

remove a property from a JavaScript object?

remove a property from a JavaScript object? delete myObject.regex; // or, delete myObject['regex']; // or, var prop = ...