Quote:
Originally Posted by abduraooft
|
Every browser listed supports this onunload attribute. However, it should be avoided as it encourages the mixing of content and behavior.
The trouble with using mailto: to send form results is its unpredictabiity. The method it is highly dependent on the browser in use and the email client in use. In particular, some of the most popular versions of Internet Explorer/Outlook Express will not work correctly. With all of the browser troubles, you're likely to lose about half of your users' messages. Also, what about people with Javascript disabled?
In fact few browsers these days accept mailto as a form action. You need a really old browser for it to work as more modern browsers simply open the email program (if any) and ignore the form. If you are going to use a form then use a server-side formmail script as the action - there are several good free ones out there.