Web Global Net Web Application & Web Development Project Center

Technical Issues => Javascripting => Topic started by: Guest on May 23, 2005, 01:24: PM



Title: Email this page Javascript
Post by: Guest on May 23, 2005, 01:24: PM
<!-- TWO STEPS TO INSTALL E-MAIL THIS PAGE:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<script type="text/javascript">

<!-- Begin
function mailpage()
{
  mail_str = "mailto:?subject= Great JavaScripts " + document.title;
  mail_str += "&body= I recommend this JavaScript (yourdomain.com) tip -- " + document.title;
  mail_str += ". You should check this out at, " + location.href;
  location.href = mail_str;
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<div align="center"><A HREF = "javascript:mailpage()">E-mail This Page[/url]</div>

<!-- Script Size:  1.08 KB -->