if today isn’t yesterday, reload now!

I need some input here. It is very clear to me why http://www.milanrecords.com/ is constantly reloading in Opera, it's because of the following statement:

if (window.history.current != window.history.previous)

window.location.reload();

which is literally telling the browser "if this page is not the same as the previous page you visited, then reload".

The big question is: why did someone write that? Is it meant as a sort of "back button disabler" script? What browser are they targetting anyway? Because Opera gets stuck in a loop, FireFox throws an exception and in IE6 both properties are undefined?? I won't understand the purpose of this code even if I think about it while today is different from yesterday..

Advertisements

2 thoughts on “if today isn’t yesterday, reload now!

  1. Some pages you visit places things in your pc without your knowledge.
    Post this in the forum you will get the most professional answer and fast 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s