Click to See Complete Forum and Search --> : Leaving domain


endl
03-08-2003, 02:00 PM
Hello

I haven't done much coding for about a year and am just now getting back into it. I seem to have lost some important javascript code that I was hoping to adapt and have been looking for three days for it.

What I need is an alert that pops up when a link is clicked that takes the user away from the domain. Not when exiting the page, but only when leaving the domain.

Can anyone help?

Thank you.

Richard

khalidali63
03-08-2003, 02:05 PM
Unless you create a hack for it,there is no way javascript can do this.

Cheers

Khalid

pyro
03-08-2003, 02:20 PM
I believe that Charles has written a bit of code that you'd be interested in. You can view it here: http://forums.webdeveloper.com/showthread.php?s=&threadid=4083&highlight=popup