location=location
location = location
... and 534 other ways to reload the page with JavaScript
How many ways you can think of when you want to reload the current page with JavaScript? I counted 535 before I got bored, maybe someone can pick up from there? The cases are so much that I had to write a script to generate them
Just occurred to me that I didn't even include the frames property in those 535 ways. Consider the limitless possibilities having in mind for example that:
>>> window.frames === window true >>> frames === window.self true
Could you come up with 500 more ways? A 1000? One condition: no recursion, for example window.self.window is not allowed.

July 27th, 2008 at 3:49 am
Ha ha, you must have had lots of time
July 27th, 2008 at 5:55 pm
Missed all the ones using “this”
July 27th, 2008 at 8:29 pm
Would you accept things like:
document.forms[0].reset;document.forms[0].action=’/';document.forms[0].submit();
It isn’t quite a “reload”, but (depending how you got there) is is the same.
Also, didn’t scan the whole list, but did you include: history.go(0); ?
July 27th, 2008 at 11:17 pm
Ken, true, but this may have a different value depending on the context, it’s not necessarily synonymous to window
July 28th, 2008 at 4:04 am
[...] And according to the blog post (http://www.phpied.com/locationlocation/), this is probably only the beginning. Ah, some people just have too much time on their hands [...]
July 30th, 2008 at 1:14 am
there’s also document.location and window.frames.location, and then you can also use document.documentURI or document.URL as the rvalue for your assignment.
Then, you can get to the document object using window.parent.document (if it is not in an iframe)
August 5th, 2008 at 1:38 am
@jax - I think I missed history.go(), thanks
@Philip, good ones, also maybe window.top?