Debt Consolidation - Debt Consolidation - Golf Store - Expekt bonuses - Wordpress Themes

PDA

View Full Version : Auto Closing child window


love_bug
Aug 25th 2006, 5:03 am
Hi,
I've seen sites that auto close it's child windows, when the parent page is closed or changed main url~
Is there a way to do it using javascript or possibly adding php codes? I heard that i can be achieved with javascript cookie?

It would so helpful.. if you could show me how!1 thanks

QiSoftware
Aug 25th 2006, 5:39 am
PHP cannot close a local window. With JavaScript associate the child window with the parent when opening.

Q...

phper
Aug 27th 2006, 5:38 pm
When opening a child window (with window.open()), you can assign a name to the child window. With this name, you can refer to the child window from the parent window, and close it on a certain event.

To detect the URL has changed, there's an "onunload" event.

love_bug
Sep 9th 2006, 7:12 am
Thanks guys