Form Submit when window closes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a survey that opens in a window. I want to submit the results when the
user closes the window. I would use the onClose() event to trigger it, but I
don't know what function to call. Any thoughts?
 
johnVT said:
I have a survey that opens in a window. I want to submit the results when
the
user closes the window. I would use the onClose() event to trigger it, but
I
don't know what function to call. Any thoughts?

I don't know that it is possible, since you usually have to click a submit
button in a form to submit the data, then it would redirect to a "thank you
page".

What if the user didn't want to complete the survey, and close the window,
then you'd receive a half-completed survey. In effect giving the user no
choice but to complete it.

perhaps if you use OnSubmit='window.close();' in the <form> tag or the
<input type=submit> tag instead of onClose()


I really couldn't tell you how to do this....
 
Back
Top