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
PHP cannot close a local window. With JavaScript associate the child window with the parent when opening. Q...
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.