...

View Full Version : E-mail thing



midez
07-06-2005, 06:30 PM
When i click an a e-mail link i want it to add som information to the subject and to the body, something like this (i know it's not right):


?subject=Take a look at this page I found, ' + document.title + '?body=You can see this

I want it to be implimented in to this script:


<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var user = "username";
var site = "yoursite.com";

document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write(user + '@' + site + '</a>');
// End -->
</SCRIPT>

Mike //

hemebond
07-06-2005, 11:22 PM
document.write('<a href=\"mailto:' + user + '@' + site + '?subject=Take a look at this page I found, ' + document.title + '?body=You can see this\">');I don't know the specific syntax for passing the subject/body to an email application.

Plus document.write is bad.

midez
07-07-2005, 11:16 AM
When i use it like that it puts both subject and body in the subject. Someone else that has an solution?

martin_narg
07-07-2005, 11:23 AM
document.write('<a href="mailto:'+ user +'@'+ site +'?subject=Take a look at this page I found, '+ document.title +'&body=You can see this">');


Hope this helps

m_n

midez
07-07-2005, 02:43 PM
Yep, it helped! Thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum