Results 1 to 10 of 10
Thread: JS for mailto: function?
Nov 22, 2000, 05:30 #1
- Join Date
- Oct 2000
- 0 Post(s)
- 0 Thread(s)
I'm looking for some java script which will help me perform the the following function:-
I want to have a 'mail this page to a friend button on each of my pages which automatically opens up a new e-mail in the users microsoft outlook and insets the page url in the body of the e-mail (using the mailto: function).
I know you would insert a link like this:
<a href="mailto:?subject=send a page url&body=URL of current page">Send this page
to a friend</a>
BUT: Is there any way that I can do this (possibly using a JS function) that would automatically enter the URL of the 'current page' into body= , rather that hand coding it for every page?
I've got over 600 page so handcoding would be a real chore!