寫信給您的朋友

將下列程式碼複製至<head>程式碼</head>區內

<script>

var mailsys="IE mail";

var author="Jon Eyrick";

if (author == "Jon Eyrick"){

phrompt=prompt;

snarkconf=confirm;

}

function mailsome1(){


who=phrompt("請填寫您的 E-Mail例如: ","local.tien@msa.hinet.net");


what=phrompt("請填這封信件的主旨例如: ","[您好]");


if (snarkconf("請問您是否要寄信給 "+who+" 這封信件的主旨是 "+what+"?")==true){


parent.location.href='mailto:'+who+'?subject='+what+'';

}

}


</script>
<form>
<p align="center"><input type="button" value="寫信給我或您的朋友" onClick="mailsome1()">
</form>