Closing windows

S

Steve Grosz

Here's my question. If I have a target frame set to a new window, how, when
leaving that window, can I have that window close automatically.

Thanks very much.

Steve
 
M

MD WebsUnlimited.com

Hi Steve,

Leaving by what means?

Use the unload event handler in the body tag.
 
S

Steve Grosz

Sorry about this, but can you give me an example of code on how this would
work?

Thanks!!
Steve
 
S

Steve Grosz

I have a button that goes back to the main page, calls index.htm, but at the
same time opens up a new window. I just want to get back to the main page.
 
S

Steve Grosz

1 more quick question regarding this. If this is a frames window, which
window would this go in?

Thanks again!
Steve
 
M

MD WebsUnlimited.com

You would not use that on a framed window. Perhaps I don't understand what
the question is. What I understood it to be was that a window needed to be
closed when you left it.
 
S

Steve Grosz

It is a window w/ frames that I'd like to close down the whole window when I
select the 'main' window button I've set up and defined on that same frames
page.
 
M

MD WebsUnlimited.com

Okay so the "main" window pops this framed window up correct? How do you
plan to get back to the "main: window?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top