Ok, I am using an iframe on a page. The content within the iframe I have no control over and is being utilized with an Adobe Flash program.
But once the form is sumitted within the iframe (again which I have no control over), it loads up a PAGE, I DO HAVE CONTROL Over, but has that page within the IFRAME instead of it breaking out of the iframe on that page. How do I break out of the iframe on that page only??
I'm assuming that some Javascript is needed, but this code is no good:
if (top.location != self.location) {
top.location = self.location;
}
I believe you want this
if(this != top){
top.location.href = this.location.href;
}
To break out
It might need the document reference too... I'm not at a computer to check.
if(this != top){
top.document.location.href = this.document.location.href;
}