Reply to thread

What my goal is, is to fill out the form and have it create a link. Once you click on the link it opens outlook and fills in the information that you enter on the first page. I am it all set up, when I test the data that I'm capturing by doing to document.write statements everything is captured correctly, however, when I use the link nothing fills in when outlook opens. What am I missing/


<html>


<head>

<title>Email Helper </title>

<script type="text/javascript">

function SendEmail()

{


var EmailAddy = document.emailhelper.emailaddress.value


var EmailSubject = document.emailhelper.subject.value


var EmailBody = document.emailhelper.body.value


var mailto_link = "<a href = mailto: " + EmailAddy + "?subject=" + EmailSubject + "&body=" + EmailBody + ">Please!</a>"


document.write("Send me the email "+mailto_link);


}


</script>


</head>


<body>

<form name="emailhelper">

<p>Email Address: </p><input type=text name="emailaddress" size="20">

<p>Subject: </p><input type="text" name="subject" size="30"></p>

<p>Body: </p><textarea name="body" cols="40" rows="20"></textarea><br />

<input type="button" Value="Send Email" onClick="SendEmail()">


</form>

</body>


</html>


thanks,


Back
Top