Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Email | Q134 [ previous next ]

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?'

©2018 Martin Webb