描述:
此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實現自動發送郵件的代碼,代碼簡單易懂,希望對大家有所幫助,欲了解更多信息請持續關注網站,該站每天都有新的內容更新,謝謝!