|
|
Q817 How can I access a variable in the parent frameset of a window that opened a popup window, from within a frame in the popup window?
irt.org | Knowledge Base | JavaScript | Frame | Q817 [ previous next ] Q817 How can I access a variable in the parent frameset of a window that opened a popup window, from within a frame in the popup window?First you need to navigate to the top frameset in the popup window. Then you have to refer to the opener window, and then the top frameset within the opener window: If the main window index1.htm contains:
and then in frame0.htm you had a link that opened another window:
and then in index2.htm:
Then from frame2.htm or frame3.htm to access the myVar variable you would need to use:
|
-- div -->
|