closing main window

Hi,

from the parent window I open a new window(child), in child window
"onLoad()" method I wrote a piece of code to close the parent window.
Like
# opener.close()
above one doesn't work. Both windows parent and child remains.

Can anyone suggest me why it happens, or anyother means to close parent window.

thanks

I appreciate for your support

sudheer
[426 byte] By [sudheer7] at [2007-11-19 21:38:33]
# 1 Re: closing main window
Opening a new window does not make it a child window. A child window is open within the main window by using frames.

The only way you can close the other window is to have a tag assigned to it. That mean that this window had to have been opened by window.open as well.
PeejAvery at 2007-11-8 0:22:56 >