BobbyDon
07-21-2009, 02:46 PM
Hi All,
I have a div overlay which presents a survey entry page to users, currently using a timed delay but wanting to add functionality to give the option to load the survey on page exit.
I can get it to load at page exit (using onunload) but a split second later the next page loads and the survey disappears (as its a div overlay and not a popup).
Is there any way I can basically tell the onunload to hold off loading the new page - perhaps waiting for a trigger from the div overlay (saying yes or no to the taking part in the survey?) - So then when you press yes or no it will then load the new page?
Any ideas?
Cheers
I have a div overlay which presents a survey entry page to users, currently using a timed delay but wanting to add functionality to give the option to load the survey on page exit.
I can get it to load at page exit (using onunload) but a split second later the next page loads and the survey disappears (as its a div overlay and not a popup).
Is there any way I can basically tell the onunload to hold off loading the new page - perhaps waiting for a trigger from the div overlay (saying yes or no to the taking part in the survey?) - So then when you press yes or no it will then load the new page?
Any ideas?
Cheers