Javascript question about 'parent'
by "MC B" <mc_b2(at)hotmail.com>
|
Date: |
Wed, 23 Feb 2000 12:34:05 GMT |
To: |
hwg-languages(at)mail.hwg.org |
|
todo: View
Thread,
Original
|
|
It's the first tiem I post.
I have a framed page, something like:
<.frameset cols="170,*">
<.frame name="left" src="menu">
<.frame name="right" src="contents">
<./frameset>
the file in the left frame, menu.htm contains a script which opens a new
window with the same file in it:
FloatMenu = window.open('menu.htm'.'FloatMenu');
AND then closes the frames or -better said- opens the contents in the full
size main window, like this:
parent.location.href="contents.htm"
Am I correct in assuming that the parent of FloatMenu is the frame named
'right'?
and when 'right' disappears, how should a javascript 'call' the main window?
(I tried parent, but it won't work).
Basically, what I want to create a function to reopen the frames in the main
window from the window called FloatMenu and load in the left frame the file
that's in FloatMenu, and load in the right frame the fiel that's in the main
window when the function is called.
I know it's a rather messy explanation, and unfortunately I can't give any
URL, because this thing is meant for local use.
Hope you can give advice anyway (pls cc me, I am on the digest).
Thanks
cristina
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA