Return to Snippet

Revision: 42433
at March 5, 2011 01:25 by dloop


Updated Code
function mailpage() {
     mail_str = "mailto:?subject=Link from Yourwebsite.com";
     mail_str += "&body=I thought you would enjoy looking at this page.";
     mail_str += " " + parent.location.href;
     location.href = mail_str;
}




<a href="javascript:mailpage()">E-mail this page</a>

Revision: 42432
at March 5, 2011 01:24 by dloop


Initial Code
function mailpage() {
		mail_str = "mailto:?subject=Link from Yourwebsite.com";
		mail_str += "&body=I thought you would enjoy looking at this page.";
		mail_str += " " + parent.location.href;
		location.href = mail_str;
}




<a href="javascript:mailpage()">E-mail this page</a>

Initial URL


Initial Description


Initial Title
Javascript: E-mail This Page

Initial Tags


Initial Language
JavaScript