Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing a parent window from a popup

 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic