OneTrickPony
06-23-2002, 09:45 PM
OK, I got a question about JS. I've found a script that may suit my needs with a little tweaking.
What I want to do is send a html form in an email, and get a response from my client with him just clicking a button.
The script I'm trying to use can be seen here.
http://www.rolisonwebcreations.com/help_me_please.htm
I've begun the modifications. But my trouble begins when I try to tell the script I want to capture the email address of the respondent, not the URL of the website.
I know the part I want to change, just don't know what to change it to. :confused:
It's the parts that looks like this:
var initialmsg="Hi:\n You may want to check out this site: "+window.location
u = window.location;
function mailThisUrl()
//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
I know I need to change the "window.location" to something so it will capture the email address entered into the form field.
Any ideas?
Thanks
What I want to do is send a html form in an email, and get a response from my client with him just clicking a button.
The script I'm trying to use can be seen here.
http://www.rolisonwebcreations.com/help_me_please.htm
I've begun the modifications. But my trouble begins when I try to tell the script I want to capture the email address of the respondent, not the URL of the website.
I know the part I want to change, just don't know what to change it to. :confused:
It's the parts that looks like this:
var initialmsg="Hi:\n You may want to check out this site: "+window.location
u = window.location;
function mailThisUrl()
//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
I know I need to change the "window.location" to something so it will capture the email address entered into the form field.
Any ideas?
Thanks