Geeks With Blogs

News These postings are provided "AS IS" with no warranties, and confers no rights.
Locations of visitors to this page virtusa corp sharepoint virtusa.com shehan peruma
Shehan Peruma

Here is a bit of JavaScript that can be used by a site visitor to email a page. Nothing fancy - just a plain ol' mailto command.

 

   1:  <script type="text/javascript">
   2:      function mailThisPage()
   3:      {
   4:          var link = window.location;
   5:          var emailSubject = "Check this out: "+ document.title;
   6:          var emailAddress=prompt("Please enter the recipients email address","");
   7:          window.location  = "mailto:"+emailAddress+"?Subject="+emailSubject+"&body="+link                     
   8:      }
   9:  </script>

 


Technorati Tags:
Posted on Tuesday, November 25, 2008 7:48 PM JavaScript | Back to top


Comments on this post: JavaScript to 'E-Mail This Page'

# re: JavaScript to 'E-Mail This Page'
Requesting Gravatar...
Manish Sharma
Left by Man on Apr 17, 2015 1:15 AM

Your comment:
 (will show your gravatar)


Copyright © shehan | Powered by: GeeksWithBlogs.net