Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing a java window.

Status
Not open for further replies.

L8T3X

Programmer
Oct 2, 2001
10
CA
Hey, I'm having a little problem with closing a java window. I've tried window.close() but it won't work. If someone has any suggestions please reply rsvp.
My webpage is if you look at the source you'll see that a javascript opens a new window.
To open the new window click on "Java Enhanced Version" on my page. Thanks to all. I really appreciate it!
 
It certainly is a strange effect - I still can't really see how it works, but you can call this from the opened document.

parent.opener.NFW.close();

This would be called from the pop-up to kill it, and just call NFW.close() from the original to close it there.
Also set the variable autoclose tot true, so it will not hang arounf after the opener is closed.
 
Oh I see, it uses fullscreen wit the frameset - nice!
 
Thanks so much, I totally missed that!
I'm forever in your debt.
 
WAIT!
what if I want to close the parent window and just have the popup opened. Is is possible to close the popup after the parent window is closed?
Try it, open the popup window, close the parent, then try to close the popup!
Shiat.
 
Oh - ok, well then try something like

parent.close();

It's a very nice script really this one, though it's a pity
they didn't include mobility.

aX
 
Yet again I am in your debt because it worked!
thnx!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top