joelmon
01-03-2002, 07:21 PM
Hello, I was wondering if anybody knows
how javascript (if possible)
can tell when you leave a url www.domain.com (http://www.domain.com)
and then put up an alert box
I have a script that uses onunload within a frame, but what sucks is it works during refresh, not just leaving the frame (If you leave the domain, the frame is done with, so the alert box comes out)
My goal is to have a sort of onleave
if you will where when the *Domain* is exited, not just the page, the alert is activated
Is this possible?
Thanks
how javascript (if possible)
can tell when you leave a url www.domain.com (http://www.domain.com)
and then put up an alert box
I have a script that uses onunload within a frame, but what sucks is it works during refresh, not just leaving the frame (If you leave the domain, the frame is done with, so the alert box comes out)
My goal is to have a sort of onleave
if you will where when the *Domain* is exited, not just the page, the alert is activated
Is this possible?
Thanks