haroonqurehi
Programmer
I want to pop up window when user leaves the DOMAIN (either close the browser window or go to another site). I am opening it on onUnload event of body but it is fired on every new request even within the domain (like from one page of site to another). I only want it when leaving the site.
I am trying to detect in child window about the new URL of parent window and see if this is same domain then close the child window but can't check the new URL of the window.
Anyone has got any experience or idea ?
I am trying to detect in child window about the new URL of parent window and see if this is same domain then close the child window but can't check the new URL of the window.
Anyone has got any experience or idea ?