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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:48:13+00:00 2026-05-28T15:48:13+00:00

How can I reload the parent page in this scenario: Parent domain: sub.abc.com Popup

  • 0

How can I reload the parent page in this scenario:

Parent domain: sub.abc.com
Popup domain: abc.com

Using window.opener.location.reload(); from the popup only works when the domains are equal (should also when the popup is a subdomain of parent).

I have tried to reload on onunload event in parent:

var targetWin = window.open(...
targetWin.onunload = function(){ 
    window.location.reload(); 
}; 

This triggers too early, probably since the popup redirects.

I have also tried to explicitly set the domain in parent like this:

document.domain = "abc.com";

This has no effect, I still get the error

Unsafe JavaScript attempt to access frame with URL
http‍://sub.example.com/ from frame with URL http‍://example.com. Domains, protocols and
ports must match.

Do I have to resort to some hideous polling function to check if targetWin.closed == true?

  • 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-28T15:48:15+00:00Added an answer on May 28, 2026 at 3:48 pm

    This question has been up for two weeks and i have come to the conclusion that there is no way of doing this without polling.

    The reason, as stated in the question, is that the parent is a sub domain of the popup.

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

Sidebar

Related Questions

Using colorbox: http://colorpowered.com/colorbox/ Im using this to open a window up using the iframe
Does anyone know how I can reload an UpdatePanel on my parent C# page
I am using this plugin to create charts: http://www.filamentgroup.com/lab/update_to_jquery_visualize_accessible_charts_with_html5_from_designing_with/ The code works below if
In my web application, the user can open a popup window to select an
Can you please tell me how I can reload a windows form without closing
I've written a little .applescript file that can reload Safari. I've tried to hook
Can I reload iframe (say __tree_iframe) from another child iframe (__content_iframe)? Difficulty: IE6/7. UPDATE
Can anyone tell me how to hide the header in DevExpress gridcontrol..?? I'm using
can any one tell me how can change this java code into objective c.is
I am using fancybox to show Iframe within it like this.. $(document).ready(function() { $(#button).click(function()

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.