J
John Hoge
I would like to open an exit pop when a user leaves my site, but I
don't want to the back button to trigger the pop if the user remains
in my site.
I'm using the onUnload attribute of the Body tag to do this. All
internal links set a variable of inSite to true on their onClick event
handler, so the exit pop will not open if the user follows an internal
link.
Should the user hit the back button, the pop will be displayed. Is
there a better, cleaner way to determine when the user has left a
site?
don't want to the back button to trigger the pop if the user remains
in my site.
I'm using the onUnload attribute of the Body tag to do this. All
internal links set a variable of inSite to true on their onClick event
handler, so the exit pop will not open if the user follows an internal
link.
Should the user hit the back button, the pop will be displayed. Is
there a better, cleaner way to determine when the user has left a
site?