Click to See Complete Forum and Search --> : refering to a window


vauneen
02-14-2003, 04:08 AM
hi, is there a way i can refer to a window from a window that didnt open it?

i have 2 open pages (a, b)
i open a 3rd one (c) from a,
then from b i want to the focus set on the newly opened one (c)

please help
vauneen

gil davis
02-14-2003, 05:28 AM
If the window has a NAME, you can create a handle using window.open:

var winC = window.open("","winC");

will give you a pointer to a window called "winC" without changing what's in the window. If no window by that name exists (maybe the user closed it), it will open a new blank window.

khalidali63
02-14-2003, 05:45 AM
If b was opened from a then you can access c page otherwise no.

cheers

Khalid