This is a simple one. It opens up the user's email program. It has the usual problems with mailto, so if you can do it with cgi, you'd probably be better off that way.
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Read about " + document.title;
mail_str += "&body=I thought you might be interested in this article: " + document.title;
mail_str += ". You can view it at " + location.href;
location.href = mail_str;
}
</script>
<title>
Email this page
</title>
</head>
<body>
<p>
<a href="javascript:mailpage()">E-mail This Page</a>
</p>
</body>
</html>
Bookmarks