Closing parent window and keeping up child window

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
Guest

Closing parent window and keeping up child window

Post by Guest »

Hi,

Using Javascript I am trying to close first window after opening second window. But closing first window also closes the second window but vice versa is not true. My code works fine on IE and Netscape.

Thanks

spragers
Benefactor
Benefactor
Posts: 153
Joined: Fri Dec 27, 2002 9:11 am
Contact:

Post by spragers »

I believe that's the way PWB works - the original (first) window is the control window. If you close that window, all PWB windows close.

Scott will correct me if I'm wrong :oops:

Scott
Site Admin
Site Admin
Posts: 2530
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

You are correct, currently by design the parent PWB window closes the children.

If this needs to be changed, we certainly can add a new feature.

--Scott

Guest

Post by Guest »

I just got a complaint about it, thta closing parent window closes all child windows. Is it possible to add it as an option configurable via INI file?

Scott
Site Admin
Site Admin
Posts: 2530
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

In order to have the main PWB not close all the child windows, we would need to have each child window start as a new thread. We are hoping to avoid this because it will cause other problems such as when running PWB as the Windows shell.

You can have PWB confirm the closure on the main PWB when by setting the following in the INI file.

[Browser]
...
ConfirmClose=True
...

--Scott

Oleg
Contributor
Contributor
Posts: 20
Joined: Wed May 12, 2004 1:54 pm

Post by Oleg »

Thanks, I will give it a shot.

Post Reply