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 Use 'x' button to close frame 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 "Use Watch "Use New topic

Use 'x' button to close frame

Elinor Chang
Ranch Hand

Joined: Jul 30, 2003
Posts: 58
I get a requirement to draw up a frame. One of the frame needs to have a small 'x' button, like the right upper x button. Once the 'x' button gets clicked, the frame will be closed and leave only the other frame open in the window. How do I archieve this without having to do any javascript?

The more I learn, the less I know....<br /> <br />SCJP2 <br />SCWCD
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Regardless of the many ways you can achieve this, you are going to need Javascript.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Use 'x' button to close frame
It's not a secret anymore!