File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes javascript closing windows 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 "javascript closing windows" Watch "javascript closing windows" New topic

javascript closing windows

Steve Mutonshi

Joined: Jun 13, 2008
Posts: 13
Suppose I have a browser window opened and from there I click to open a new window. How do I implement a close window button so I when I click it, both windows will be closed ?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63533

You don't. You can't close windows you did not open.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: javascript closing windows
It's not a secret anymore!