faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

15 of 53 people (28%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

I want to popup a window when the person leaves my domain. How can I check for the domain of a new page to be loaded?

May 5th, 2001 05:49
Colin Fraser, Phillip Bishop,


Why bother? There are so many ways for a person to leave your site that 
it becomes very difficult to trap any of them. 
Even though JavaScript ia client-side, I would suggest that the 
connectionless nature of the Web has an impact here, making it either 
ridiculous to try or just too hard.