Email On Click

[Total: 0    Average: 0/5]

Want to email someone by clicking on a href or a form button?

Body Code:

<SCRIPT language=JavaScript>

 
<!-- Begin
function mailsome1(){
who=prompt("Enter recipient's email address: ","notme@nowhere.com");
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>
      <CENTER><A href="javascript:mailsome1()">E-Mail Someone!</A> 
      <FORM><INPUT onclick=mailsome1() type=button value="E-Mail Someone!"> 
      </FORM></CENTER><BR><BR><BR>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *