Thursday, December 13, 2007

JavaScript email director

Directions: Simply insert this in the :


// Copyright 1996 Jon Eyrick

var 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: ","benny3@chelsea.ios.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+'';

}

}