dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Web
Expertise: All
Sep 7, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Use an HTML Form to Call the User's E-mail Application

Although you can process e-mail addresses using server-side code, sometimes it is easier to let your server-side code set up the original parameters for the e-mail and then just let the user's own e-mail application handle the rest. Here's a method to get the process started from within an HTML form:

 
<HTML>
<HEAD>
<script language="javascript">
function dosub() {
location.href='mailto:' + document.forms[0].text1.value + '?subject=' +
document.forms[0].text2.value
}
</script>
</HEAD>
<BODY>
<FORM action="" id=form1 method=post name=form1>
Email address: <INPUT id=text1 name=text1 value='ken_cox@hotmail.com' ><br>
Subject:  <INPUT id=text2 name=text2 value='WebBuilder Tip' > <br>
<INPUT type=button onclick="dosub();" value=" OK ">
</FORM>
</BODY>
</HTML>
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date