Referring to a child window

Discussion in 'Javascript' started by laredotornado, Aug 29, 2011.

  1. Hi,

    If I spawn a child window using " ... )", and then I
    change the location.href of the parent that spawned the child, is it
    possible to refer to the child from the new window, using the name I
    passed to the call?

    Thanks, - Dave
    laredotornado, Aug 29, 2011
    1. Advertisements

  2. laredotornado

    RobG Guest


    The section on browsing contexts, window and document objects in the
    HTML5 draft might be useful:
    <URL: >
    RobG, Aug 30, 2011
    1. Advertisements

  3. laredotornado

    RobG Guest

    Probably should qualify that. If you load a new document, rather than
    just navigate to an anchor in the current page, then you will get a
    new window object and new global script execution context. Using the
    back button will probably restore the context, but I'm not confident
    it will be reliable for child windows.
    RobG, Aug 30, 2011
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.