OK, I've got a client who wants form data submitted no matter how the user navigates away from his form, even if he clicks the (X) to actually close the browser.
I've been playing around with the beforeonunload function and onunload function, but I can't seem to get the form submitted before the Window actually closes.
For the record, I don't agree with him doing it this way, and I'm even thinking of just trying to pop up a confirm dialog that the user wants to leave the form instead. If anyone has any ideas, I'd really appreciate some help!
I've been playing around with the beforeonunload function and onunload function, but I can't seem to get the form submitted before the Window actually closes.
For the record, I don't agree with him doing it this way, and I'm even thinking of just trying to pop up a confirm dialog that the user wants to leave the form instead. If anyone has any ideas, I'd really appreciate some help!
