It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes closing of popups Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "closing of popups" Watch "closing of popups" New topic

closing of popups

R . Ravi Kumar

Joined: Sep 25, 2004
Posts: 6
Can you please tell me any solution for closing popup windows that are
opened by the user. When the session expires or signed out from the application.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63551

Moving to the HTML/Javascript forum.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
if you have the pop ups object then you just have to reference the names

example of a pop up
newWin ="url","newWin");

example of closing it
if(newWin && !newWin.closed)newWin.close();

I agree. Here's the link:
subject: closing of popups
It's not a secret anymore!