Return to Snippet

Revision: 34312
at October 21, 2010 00:24 by magicrebirth


Initial Code
// 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());

Initial URL
http://johannburkard.de/blog/programming/javascript/6-fast-jQuery-Tips-More-basic-Snippets.html

Initial Description

                                

Initial Title
Forcee a page to reload

Initial Tags
js, math

Initial Language
JavaScript