Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 298965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:46:47+00:00 2026-05-12T06:46:47+00:00

Here is the case: page A contains iframe B, B contains iframe C, A

  • 0

Here is the case:
page A contains iframe B, B contains iframe C, A and B are under the same domain, C under another.
C tries to reset parent B’s location with extra information following “#” to solve cross domain communication using Fragment Id Messaging.

IE6/7/8 just works fine with this case, while Firefox blocks parent.location setting with error message [Access to property denied” code: “1010].
But if B is the top window, meaning there is no A, Firefox lives too.

It’s strange to me… Could you guys please help?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:46:47+00:00Added an answer on May 12, 2026 at 6:46 am

    Historically, any window could change the location of any other window. This turned out to be a problem because, among other things, it meant embedding a login iframe in a window was unsafe (because then a malicious site could replace the login iframe with a spoofed version). Over time further restrictions have been applied to location changes to browser windows, until now, when HTML5 and most browsers have reached common agreement on the ancestor policy. In a nutshell, paraphrasing the HTML5 specification, a window A can change the location of another window B iff:

    • the locations of A and B have the same origin, which is to say they have the same scheme, host, and port (http, stackoverflow.com, 80 for example), or
    • B is a top-level window, and A is a window in a frame nested at some depth within B (direct child, child of a child, etc.), or
    • B is a window opened using window.open and A can change the location of the window that opened B (so B is a popup opened by A, by a popup window opened by A, or at greater depth), or
    • B isn’t a top-level window, but its parent window, or its parent’s parent window, or at some similar amount of parentage the locations of that window and A are same-origin

    (Same origin is more complicated than this, but the embedded description above catches its essence and covers the most common cases.)

    Under this policy, C may change the location of A, and A may change the location of B or C, but C may not change the location of B. If you need to work around this, then you should change your page A’s location to something that changes B as appropriate; alternately, you could ask your page B to change its own location.

    Hopefully that’s informative, if not necessarily helpful. The browser security model wasn’t so much designed as evolved, and only with recent work in HTML5 is it really being precisely nailed down to address these cross-browser inconsistencies.

    All that said, I’m surprised IE7 and IE8 work for you — it was my understanding the above policy was primarily based upon the policy IE7 implemented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 141k
  • Answers 141k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer i think you can get around this by updating the… May 12, 2026 at 8:10 am
  • Editorial Team
    Editorial Team added an answer You have to find a way to combine the two… May 12, 2026 at 8:10 am
  • Editorial Team
    Editorial Team added an answer All the %%EOF token means is that there should be… May 12, 2026 at 8:10 am

Related Questions

I wonder if anyone can help. An HTML div in a page of mine
Quick overview Trying to insert a Business Object using ObjectDataSource (on a GridView) Get
We have an external .js file that we want to include in a number
In ASP.net MVC: How should/Can I pass Form data (From the View) to the
I did follow the article TRULLY Understanding ViewState (great article btw) and populating my

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.