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 6474305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:34:18+00:00 2026-05-25T06:34:18+00:00

I hope someone can help me. I have a website that uses javascript to

  • 0

I hope someone can help me.

I have a website that uses javascript to open a popup that exists at another domain.

On the popup, I want a “book now” link/button that will change the page of the parent website to it’s booking.htm page, and then the popup closes.

There is no possibility of hosting the popup on the same domain as the main website.

I have tried two code types to change the page location…

1)

window.opener.location.href="booking.htm"

2)

window.opener.window.location.href="booking.htm"

In Firefox 6 and Chrome 12 – Both 1 and 2 work perfectly.

In Internet Explorer 8 – Method 1 causes the parent window to throw a yellow popup bar, giving the user option to temporarily allow popups. Method 2 gives an “Error on Page” on the popup window and gives the explanation “Permission Denied”.

In Opera 11.51 – Both methods throw an error in the Error Console of “Uncaught exception: ReferenceError: Security error: attempted to write protected variable”

I’m pretty sure that the issues are to do with the main website and the popup being on different domains, but again hosting them on the same domain is not an option.

So I’m asking..

  • is there a way for code on a popup to change the page location of its
    parent when they are on different domains, that works cross browser?
  • why does Internet Explorer throw a yellow popup bar in method 1, when
    I’m not using using window.open, I’m using location.href? i.e. I’m
    asking the parent to change location not open a new popup.
  • have I missed out using some sort of “target=” code?
  • do I need to use some kind of “return false;” or something?

[I had an example here, but have now removed it as I set up an extra web hosting account to show the cross domain issue in action. But I don’t need the extra web host now, so am cancelling it to save money. Sorry for the inconvenience]

Thanks for reading this far even if you can’t help out.

Dave

  • 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-25T06:34:19+00:00Added an answer on May 25, 2026 at 6:34 am

    You cant do this cross domain. In child popup page redirect to the parent’s domain and that page than can simply refresh/redirect the opener or you can access it as it will be same domain.

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

Sidebar

Related Questions

I hope someone can help me out. I have a table that logs our
I hope someone can help, I have made a script that masks images... however
I hope someone can help with this. I have created a map app that
I have a quick and hopefully simple question that I hope someone can help
I hope someone can help me with this Javascript. I have an Object called
I hope someone can help with this issue. I have a popup iframe using
hope someone can help me. I have a function like <script language=JavaScript type=text/javascript> function
hope someone can help. I have two tables: Users -UserID -UserName UsersType -UserTypeID -UserID
Hope someone can help me with this.. I have a magento store up&running, via
Really hope someone can help me as I'm a bit stuck :S I have

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.