Pure JavaScript Implementation _javascript tips for automatic message sending

Source: Internet
Author: User

Describe:

This javascript will help people with your email. Just click E-mail, someone! And JavaScript will ask for the email address, subject, and so on and then you, the new mail, is open to you.

<script language= "JavaScript" >
<!--Begin
function mailsome1 () {
who=prompt ("Enter recipient" s Email address: "," "antispammer@earthling.net");
What=prompt ("Enter the Subject:", "none");
if (Confirm ("Are you sure your want to mail" +who+ "with the subject of" "+what+") ==true) {
parent.location.href= ' mailto: ' +who+ ' subject= ' +what+ ';
  }
}
End-->
</SCRIPT>
<a href= ' javascript:mailsome1 () ' >e-mail someone!</a>
< form>
<input Type=button value= "e-mail someone!" onclick= "mailsome1 ()" >
</FORM>

OK, the above is the use of JavaScript to automate the message to send the code, the code is easy to understand, I hope to help you, for more information please continue to pay attention to cloud Habitat Community website, the station every day has new content updates, thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.