If you want an anti-spam address, where the email address is build
on-the-fly to prevent harvesting of addresses of the web site, copy this
into a file and name it email.js ...
var addr='yourname'
var domain='@youraddress.com'
function DoEmail(subject)
{
var stmp= 'mailto:' + addr + domain + '?Subject=' + subject;
window.location.replace(stmp);
}
Then, where you want the link to occur, you insert the following HTML in
HTML view in FrontPage:
<a href="javascript
oEmail('Comments on the site')">Email Me</a>
Finally, at the top of the page between the <head> tags, point to the
email.js file you saved in your web, ie...
<head>
.... other head tags
<script language="JavaScript" src="js/email.js"></script>
</head>
Save the page and preview in a browser. Clicking the "Email Me" link will
open the email with the subject "Comments on the site" already filled in.
--
Randy Birch
MVP Visual Basic
http://vbnet.mvps.org/
Please respond only to the newsgroups so all can benefit.
: can anyone tell me how to set up a Mailto hyperlink that will include a
: subject line in the outgoing e-mail
:
: thanks
:
: Hugh
:
: