Welcome to WebmasterWorld Guest from 3.226.243.130

Forum Moderators: open

Message Too Old, No Replies

Need a good Javascript for "E-mail This Page to a Friend"

     
4:18 pm on Sep 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1807
votes: 1


I am trying to find a nice unobtrusive javascript that I can use to put "E-mail this page to a friend" on every page.

Ideally, the above message would be a link that goes to a new page that stores the address of the previous page and mails it to whomever they choose with a message.

I know this should be easy, but I am terrible at javascripting (or even modifying them), and I was hoping someone here had seen a good one around somewhere.

Thanks in advance.

4:30 pm on Sept 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 12, 2001
posts:1150
votes: 0


<SCRIPT LANGUAGE="JavaScript">function mailpage()
{
mail_str = "mailto:?subject= Check this link --> " + document.title;
mail_str += "&body= " + document.title;
mail_str += "... at: " + location.href;
location.href = mail_str;
}
</SCRIPT>

Then the link to it:

<a href="javascript:mailpage()" target="_top">Send this link to a friend</a>

5:06 pm on Sept 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 20, 2002
posts:3732
votes: 0


I would consider another option for emailing than javascript. It only works for people who have client email software set up. Web mail won't handle this.
8:30 pm on Sept 10, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1807
votes: 1


What would you suggest as an alternative Korkus?
8:44 pm on Sept 10, 2003 (gmt 0)

Moderator from US 

WebmasterWorld Administrator martinibuster is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 13, 2002
posts:14922
votes: 491


hotscripts.com [hotscripts.com]. They have over 50 scripts to handle this. Some cost money some don't. Most are free or ridiculously affordable.

The perl scripts have varying levels of functionality. Some of the funtionality choices include the ability to append the emails into a database, spam protection, swear word filtering, ip banning- lots of choices, from the simple to the complex.

Some scripts email the page content, some scripts send a link to the content. Review each script carefully before choosing. This could take some time...

9:09 pm on Sept 10, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 9, 2003
posts:102
votes: 0


Do people actually those?

I never had. Just wondering, not flaming :)

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members