Before anyone says anything, I agree that they are evil and I should be killed horrifically for attempting this work, but my boss has told me to do it, so doing it I am!
Aaaaanyway!
What I need to do is prompt a user when they leave our site, to fill in our questionnaire. At present I have a Javascript confirm box opening asking if they want to fill it in, and if they choose "OK" then it opens a popup, whilst the original window goes to where they wanted, thus minimally disrupting the individuals browsing.
Everything works fine when they click and external link, or change the address bar and leave the site that way. But when they close the window, the Javascript popup comes up ok, but even if they choose "OK", the window closes and no popup appears
Anyone have a clue why??
Thanks in advance!
Aaaaanyway!
What I need to do is prompt a user when they leave our site, to fill in our questionnaire. At present I have a Javascript confirm box opening asking if they want to fill it in, and if they choose "OK" then it opens a popup, whilst the original window goes to where they wanted, thus minimally disrupting the individuals browsing.
Everything works fine when they click and external link, or change the address bar and leave the site that way. But when they close the window, the Javascript popup comes up ok, but even if they choose "OK", the window closes and no popup appears
Anyone have a clue why??
Thanks in advance!