Tutorial Break Out of iframe

if (top.location!= self.location) { top.location = self.location.href; } That will generally work, but there is a small chance of failure...

if (top.location!= self.location) {
top.location = self.location.href;
}
That will generally work, but there is a small chance of failure in the case that window is overridden. Here's a couple of clever alternatives from Nathan Smith:

Hot in Week

Popular

Archive

item