纯javascript实现自动发送邮件
时间:2021-08-30 10:04:05|栏目:JavaScript代码|点击: 次
描述:
此JavaScript将帮助你的电子邮件的人。只要按一下电子邮件,有人!和JavaScript会要求的电子邮件地址,主题,等等然后你,新的邮件,是向你打开了。
<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 you 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>
上一篇:浅谈关于JavaScript API设计的一些建议和准则
栏 目:JavaScript代码
本文标题:纯javascript实现自动发送邮件
本文地址:http://www.codeinn.net/misctech/171196.html