variables from new window after window.open()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yawnmoth

    variables from new window after window.open()

    say i have an variable in a window that has opened up another window.
    how would i access the variable in the original window from the newly
    created window?

    i found a javascript mini-faq which addressed how to access form
    elements in the original window from the newly created window, but
    that's not what i want to do. i want to be able to access variables.

    any help would be appreciated - thanks! :)
  • Randy Webb

    #2
    Re: variables from new window after window.open()

    yawnmoth wrote:[color=blue]
    > say i have an variable in a window that has opened up another window.
    > how would i access the variable in the original window from the newly
    > created window?
    >
    > i found a javascript mini-faq which addressed how to access form
    > elements in the original window from the newly created window, but
    > that's not what i want to do. i want to be able to access variables.
    >
    > any help would be appreciated - thanks! :)[/color]

    window.opener.v ariableName;

    from the child window.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    Working...