Forum Moderators: open
I'm using javascript to open 2 windows up, lets say with the following code
"navigation=window.open ('navigation.asp', 'navigation')
content=window.open('content.asp','content')"
Now I want the Navigation window to "control" the content window - the opening window will have nothing to do with this and sit in the background, so the question is "how do I reference the windows?"
For example there will be close button on the navigation window that will close itself and the content window. The closing self is easy, but how do I close the content window?
From what I am reading I should be able to use "content.close" or "window[content].close" but both are returning errors (generally of the type "object is empty or does not exists" or "conetent is undefined) although they work in the parent window. (ive also tried top.conetnt.close() and parent.window[content].close() )
Is it actually possible to do what I want with javascript, or is it a big no no?