Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: Javascript Codes Library >> Email & Contact Forms >> Snap Mail Referral Link


Code Snippet </> Info


Snippet Name: Snap Mail Referral Link

Description: An easy way for visitors to refer friends to your website.

Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser


Example: View Code Demo

Note:

Author: SnapBuilder <snippets@snapbuilder.com>

Last Modified: 2015-12-13 06:30:45

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

<html> <head> <title>Snap Mail Referral Link Javascript Code Snippet</title> <style> BODY {font-family:verdana,arial,ms sans serif; font-size:90%;} </style> </head> <body> <p>This script works similar to a tell-a-friend script... The script opens the end users mail program or GMAIL (and others) account if the end user is already logged in.</p> <p>The script enters a Subject line paragraph, prints the webpage TITLE and captures the webpage URL Address in the Message Body area.</p> <p>Form Button Code</p> <script> <!-- // Begin Snap Mail Referral Link // == This Script Free To Use Providing This Notice Remains == // // == This Script Has Been Found In The http://snapbuilder.com Free Public Codes Library == // // == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == // --> function SnapMailLink(){window.location = "mailto:"+"?subject=I thought this link might interest you." + "&body="+document.title+" "+window.location;} document.write('<input class="select" type="button" value="E-mail this link to a friend" onClick="SnapMailLink();"></form>') </script> <p>or use a Text Link Code</p> <script> <!-- // Begin Snap Mail Referral Link // == This Script Free To Use Providing This Notice Remains == // // == This Script Has Been Found In The http://www.SnapBuilder.com Free Public Codes Library == // // == NOTICE: Though This Material May Have Been In A Public Depository, Certain Author Copyright Restrictions May Apply == // --> function SnapMailLink(){window.location = "mailto:"+"?subject=I thought this link might interest you." + "&body="+document.title+" "+window.location;} document.write('<a href="#" onClick="SnapMailLink();">E-mail this link to a friend</a></form>') </script> <br /><br /> <p>Adjust the Subject Message to suit your needs.</p> </body> </html>


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library