RootWindow


Step 1: Click the test button below and notice that you can successfully access the iframe's window.name property.



Step 2: Now, click the following link to navigate the iframe to a bookmark within its page. In this example, the iframe's source is already set to the page including the bookmark. So, in fact, you're navigating to the same page anyway!

Subpage Bookmark1

Step 2b: You can even click the button above again now and successfully access the iframe's window.name property again.

Step 3: Use the refresh button to refresh the page.

Step 4: Click the test button above again and notice the error in the console when trying to access the iframe's window.name property.

IFrame: SubPage