Hello,
I know that javascript can detect a user leaving a page
(or refresh) with onunload
That's fine
However, how can one use javascript (if possible)
to detect when the *url* itself is exited?
imagine an onunload that *only works when the url, not just the page* is exited. This isn't possible, is it?
My only idea to do this was use a frame, have one page hidden as a server side scripted page, use a querystring with the url appended, and when that qstring <> the url, it will know through an if/then condition, and pop up the window
I was hoping that isn't needed though, so can I just do this with javascript? or is my server side method the only way?
Thanks
I know that javascript can detect a user leaving a page
(or refresh) with onunload
That's fine
However, how can one use javascript (if possible)
to detect when the *url* itself is exited?
imagine an onunload that *only works when the url, not just the page* is exited. This isn't possible, is it?
My only idea to do this was use a frame, have one page hidden as a server side scripted page, use a querystring with the url appended, and when that qstring <> the url, it will know through an if/then condition, and pop up the window
I was hoping that isn't needed though, so can I just do this with javascript? or is my server side method the only way?
Thanks