Well boys and girls. I used the following script and tag
combo and I have not seen it not work yet.
Here is the tag:
<script type="text/javascript" language="JavaScript"
src="mailtosupport.js"></script>
This is the content of the mailtosupport.js file:
<!-- Begin
sendto = "my*****@atbigcompany.com";
subject = "Support Request";
lf = escape('\r');
tab = escape('\t')
body = "Thank you for taking the time to notify us with an issue." + lf +
lf;
body += "If you have found an error in our system, please, to the best of
your ability answer the following questions." + lf + lf;
body += "Otherwise simply erase the following content and write you own.";
body += lf + lf + lf;
body += "1)" + tab + "Please describe the error, issue, or request:" + lf +
lf + lf;
body += "2)" + tab + "Please describe the time of day the issue occurred:" +
lf + tab + " The current Time is: " + Date() + lf + lf + lf;
body += "3)" + tab + "Please describe what you expected to occur:" + lf + lf
+ lf + lf;
document.write(
'<a href=\"mailto:'
+ sendto
+ '?subject='
+ subject
+ '&body='
+ body
+ '\">');
document.write('Email Support'+'</a>');
End -->
"TJO" <no@spam.net> wrote in message
news:Sauod.126419$cJ3.54345@fed1read06...
I am trying to pre populate an email body using javascript. I cannot
figure out how to control the carraige returns for the text. The standard
\r\n is not working. Is there another technique I can try?