<!-- 把下面代码放到<body>区域中: --> <script> mailsys="Netscape mail"; var author="Jon Eyrick"; if (author == "Jon Eyrick"){ phrompt=PRompt; snarkconf=confirm; } function mailsome1(){ who=phrompt("Enter a friend's email address: ","web@vevb.com"); what=phrompt("Enter the subject: ","[no subject]"); if (snarkconf("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true) { parent.location.href='mailto:'+who+'?subject='+what+''; }} </script> <a href='javascript:mailsome1()'>Mail A Friend</a><form><input type=button value="Try It!" onClick="mailsome1()"></form>