按钮发信(三)
下面为效果显示区!
Mail A Friend
脚本说明: 把如下代码加入<body>区域中 <script> // Copyright 1996 Jon Eyrickvar 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: ","xiaoqinglu@263.net"); 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>