*
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "closing of popups" Watch "closing of popups" New topic
Author

closing of popups

R . Ravi Kumar
Greenhorn

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.


Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Moving to the HTML/Javascript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

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

example of a pop up
newWin = window.open("url","newWin");



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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: closing of popups