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!