This is good question, in fact. In the project, the system reads a file and display the content within iframe of a page. The problem is sometimes, the file is not there or the file does not have any content. Then I need to display error message, not inside of the iframe, but on the parent page.
This script is from how to redirect parent page from iframe page_load
47 if (self.parent.frames.length != 0)
48 {{
49 self.parent.location = ‘{0}’;
50 }}