aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Closing a parent window from a popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Closing a parent window from a popup" Watch "Closing a parent window from a popup" New topic
Author

Closing a parent window from a popup

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Guys,

I would like to close a parent window from a popup. Is there any way to do this? The parent window is a portal window.


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

May this Google Search helps !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
If the parent is opened up by JavaScript, than you can use window.close. If it was not opened up by JavaScript you can not do it since that is a security concern and rather rude.

Eric
 
 
subject: Closing a parent window from a popup
 
Similar Threads
Popup Window from JSP
Printing Pop up window
How to Get JSF inputText Value to JavaScript?
Struts - Pop up windows
post data from one window to another