brett43
04-07-2003, 06:29 PM
I have used a button from the javascript source that opens up an email client, writes a message into the subject line and writes the page title and link into the body of the email. That is pretty helpful, but I need the email to include the values of three fields - full name, student ID and Trainer, to go in the subject line. I also need it to include the values of the radio buttons on the page to go into the body of the email. As you can tell, I don't know much about this, so any help you could give me would be great. Thank you.
This is the code I used:
<div align="center">
<script language="JavaScript" src="EmailLink.js">
<!-- Original: Happy Smart -->
<!-- Web Site: http://happysmart.net -->
</script>
</div>
This was saved as a .js file:
function EmailLink(){
window.location = "mailto:"+"?subject=Activity 2" + "&body="+document.title+" "+window.location;
}
document.write('<INPUT class="select" TYPE="button" VALUE="Submit by Email" onClick="EmailLink()"></FORM>')
This is the code I used:
<div align="center">
<script language="JavaScript" src="EmailLink.js">
<!-- Original: Happy Smart -->
<!-- Web Site: http://happysmart.net -->
</script>
</div>
This was saved as a .js file:
function EmailLink(){
window.location = "mailto:"+"?subject=Activity 2" + "&body="+document.title+" "+window.location;
}
document.write('<INPUT class="select" TYPE="button" VALUE="Submit by Email" onClick="EmailLink()"></FORM>')