This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes closing of popups Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56202
    
  13

Moving to the HTML/Javascript forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: closing of popups
 
Similar Threads
EJB Architect
Khalid Mughal's Book
how to use a plugin i created in a new application
home and remote interfaces
sessionDidActivate() and sessionWillPassivate()