Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q134 Is it possible to send an email from a JavaScript?

irt.org | Knowledge Base | JavaScript | Email | Q134 [ previous next ]

Q134 Is it possible to send an email from a JavaScript?

Using an HTML link:

<A HREF="mailto:no@spam.wanted">email someone</A>

Using a Form:

<FORM ACTION="mailto:no@spam.wanted" METHOD="POST" ENCTYPE="text/plain">
</FORM>

Both methods suggested are completely non-JavaScript methods - but possibly useful nevertheless.

The ACTION="mailto:..." works on some other browsers than just Netscape, although its effect is undefined by the specifications.

In HTML, you can also use forms to set up possibilities for sending E-mail from Web pages - take a look at the list of JavaScript Email articles for further information.

Thanks to Jukka Korpela for updates to this answer.

Feedback on 'Q134 Is it possible to send an email from a JavaScript?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.