This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes from servlet wants to close the application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "from servlet wants to close the application" Watch "from servlet wants to close the application" New topic
Author

from servlet wants to close the application

kapildev ganeshan
Greenhorn

Joined: Feb 15, 2006
Posts: 17
Hi,
while closing the child window of application I want to remove the attributes from a existing application.For that I submited the form to a servlet while closing the application. From that servlet i have removed my session attribute. Is it possible to close the child window (from where I came).

thank you for advance
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
you can wreite

<script>
window.close();
</script>

in the child window and close it.

Eric
 
Don't get me started about those stupid light bulbs.
 
subject: from servlet wants to close the application
 
Similar Threads
How to Close multiple child windows from a parent window
window icon menu behaviour
Deleting all the cookies by means of a javascript function
Problem while calling main() method.
Closing child windows