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...
https://iskablogs.blogspot.com/2014/03/tutorial-break-out-of-iframe.html
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:
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: