Кто-то перечислил 535 различных способов перезагрузки страницы в Javascript:
http://www.phpied.com/files/location-location/location-location.html
Например:
location = location
location = location.href
location = window.location
location = self.location
location = window.location.href
location = self.location.href
location = location['href']
location = window['location']
location = window['location'].href
location = window['location']['href']
location = window.location['href']
location = self['location']
location = self['location'].href
location = self['location']['href']
location = self.location['href']
location.assign(location)
location.replace(location)
window.location.assign(location)
window.location.replace(location)
self.location.assign(location)
self.location.replace(location)
location['assign'](location)
window.location['assign'](location)
self['location'].assign(location)
self['location']['assign'](location)
self['location']['replace'](location)
location.href = location
location.href = self.location
location.href = window.location.href
Мне любопытно, знает ли кто-нибудь, как в браузере они обрабатываются по-разному: обновляется ли страница, но не работает в кэше - или нет?