Reverse body unload

liunx

Guest
Hi,<br />
<br />
I am writing an online questionnaire for where I work. <br />
<br />
One of the features is to have a pop up window that asks the users to fill in the questionnaire. We agreed that it should persistantly pop up 3 times before going should they try and close the pop up.....this is irritating, but this is quite a high profile survey.<br />
<br />
I'm achieving this by using the <body onunload> tag. <br />
<br />
Is there a way of stopping this from running should the person agree to fill in the questionnaire, as at the moment, I'm using location.href to divert to the survey, but this is treated as onunload and the next pop up is opened.<br />
<br />
Something like onwindowclose doesn't exist which would be handy. If you can think of another way of having a persistant pop up, I'd like to hear about it!!<br />
<br />
Any ideas on stopping the onunload?<br />
<br />
Cheer,<br />
<br />
Neil.<!--content-->Its ok. I'm using cookies to control the popups!<br />
<br />
Neil.<!--content-->
 
Back
Top