email javascript
by "Keith D Sellars" <Keith(at)webgraffix.com>
|
Date: |
Wed, 27 Feb 2002 14:34:55 -0500 |
To: |
<hwg-basics(at)hwg.org> |
References: |
aol leapinliz |
|
todo: View
Thread,
Original
|
|
This may be the wrong list, but I will post it here to begin with:
Take a look at the following javascript code. I am using this to allow
viewers to "send this site to a friend". What I want to do is be able to
insert line breaks in the email box that pops up. The page is located at
www.helmetsunblocker.com if you want to see the existing code in action.
You will see a line containing *** mail_str += "\n"; *** below. The \n is
what I was trying to use to cause a line break in the email, but it does not
work. Any ideas?
Here is the code I am using:
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide script from old browsers
function mailpage()
{
mail_str = "mailto:?subject= Helmet Sunblocker - 100% UV Protection: " +
document.title;
mail_str += "&body= Look at this great new product
(www.helmetsunblocker.com) called a Helmet Sunblocker. "
mail_str += "\n";
mail_str += "This is one of the best riding investments you could ever
make. " + location.href;
location.href = mail_str;
}
// End hiding script from old browsers -->
</script>
Thanks,
Keith D. Sellars,
WebGraffix
http://www.webgraffix.com
Keith(at)webgraffix.com
���������������� ����������������
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA