/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// This will forcefully reload the current page. No jQuery needed here. location.reload(true); // If your content might be cached by proxy servers and your URL has no query string, try this: location.replace( location.href.replace(/\?.*$/, '') + '?' + Math.random());
URL: http://johannburkard.de/blog/programming/javascript/6-fast-jQuery-Tips-More-basic-Snippets.html