View Single Post
Old 05-25-2005, 04:37 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
maintaining child relation between pages

i want to lanch a child window, then be able to click a link from the parent window, and then on the next page be able to access the child again.

steps:

1. page 1 launches a child window
2. click a link which takes me to page 2 from the page 1 window
3. click a link on page 2 that closes the child.

can you maintain the relationship to a child window in between pages?

HTML Code:
var mywin = window.open( 'child.html', 'mywin', 'scrollbars=yes,resizable=yes,status=yes,width=640,height=480,left=0,top=0');
that is the code i'm using to pop the child window.

on page 2, window['mywin'] is undefined. as i understand it, i should be able to access that variable. i've tried variations of calling it, but i just can't get it.

it needs to work in IE. any insight on this?
__________________
Mike
sde is offline   Reply With Quote