Using the MailTo: how can I include the page in body of the email

M

Mike John

how can i include the current page in the body of the
email. I was only to put text.

Syntax:
<html>
<body>
<input type ="Button" onclick= "eman()">


<SCRIPT LANGUAGE=JAVASCRIPT>
function eman()


{
var e_add= '(e-mail address removed)';
var subj= 'hellow';
var e_body= 'Found some information on '
var about= document.title + " at the following
address";
var elink= " " + document.location ;
window.location="mailto:"+e_add+"?
subject="+subj+"&body="+e_body+about+elink;
alert("ADF");
}
</SCRIPT>


</body>

</html>



Sincerely yours


Mike John
 
N

Natty Gur

Hi,

window.document.body.innerHTML or window.document.body.innerText

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top