Posted By

dloop on 03/05/11


Tagged


Versions (?)

Javascript: E-mail This Page


 / Published in: JavaScript
 

  1. function mailpage() {
  2. mail_str = "mailto:?subject=Link from Yourwebsite.com";
  3. mail_str += "&body=I thought you would enjoy looking at this page.";
  4. mail_str += " " + parent.location.href;
  5. location.href = mail_str;
  6. }
  7.  
  8.  
  9.  
  10.  
  11. <a href="javascript:mailpage()">E-mail this page</a>

Report this snippet  

You need to login to post a comment.