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

  • SEARCH
  • Home
  • 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 8881067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:16:24+00:00 2026-06-14T20:16:24+00:00

So I have a parent window who is opening itself to a new window

  • 0

So I have a parent window who is opening itself to a new window (just to remove the status bar, toolbar, others). After closing the parent window, the passed variable return blank string. Sometimes it returns this error message: “The remote server machine does not exist or is unavailable.” I really need to access this variable even after closing the parent window. Any suggestions?

var _env = {};
$(window).load(function()
{
    /**
     *
     * If initialization was not yet performed, start the initialization.
     * Otherwise, show application.
     *
     **/

    if (window.opener)
    {
        /* Start transition to the new window */
        window.blur();
        _env = window.opener._env;

        console.log(_env["title"]);

        /* Show system */
        window.opener.close();
        window.focus();

        console.log(_env["title"]); // Returns blank
    }
    else
    {
        /* Some process manipulating the '_env' variable */
        /* .... */
        /* .... */

        window.open("./index.html", _env["title"], "directories=0, menubar=0, toolbar=0, titlebar=0, resizable=1, width=" + _env["winWidth"] + ", height=" + _env["winHeight"]);
        window.focus();
        window.open("","_self", ""); // To prevent prompt on closing..
    }
});
  • 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-06-14T20:16:25+00:00Added an answer on June 14, 2026 at 8:16 pm

    You can convert the object to JSON, and set window.location.href to it. You can then extract it when you need the data, and there won’t be any issues with references because you’re creating a new object.

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

Sidebar

Related Questions

I have a parent window and a few child windows attached to this. With
I have this iFrame in my parent window... <iFrame src=http://theirdomain.com id=Post_iFrame></iFrame> Then I have
Want to run javascript function from parent window in child window Example I have
I have a parent window create a child window. When the child window closes,
i have a parent window and a child window. in javascript, i want a
I have parent window with its owner set via WindowInteropHelper. Parent.Owner equals null in
I have done a sticky note application in asp.net. I have a parent window
Like the title says, i have a parent window with button that opens a
I have a parent window with the URL: http://example.com?val=test In the iframe of that
I have a (parent) window containing JQuery tabs: <div id=tabs> <ul class=tabHeader> <li><a href=?ctrl=doSomething

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.