Webpage Referral Form

Placing this form on your webpage will allow a visitor to "recommend" the page to a Friend. The visitor simply fills out the form and it is sent to the e-mail address of the Friend when the "Send It!" button is activated.

The Javascript needed for the form is located below. Just "copy & paste" it into your webpage and you're all set.

To: Enter e-mail address
Subject: Pick a subject
Your Name:
Place this Javascript in the <HEAD> section of the webpage. <SCRIPT LANGUAGE="JavaScript"> function email(){ var add = document.form.To.value var subject = document.form.Subject.value document.form.action="mailto:"+add+"?subject="+subject;} </SCRIPT> Then place this section of the Javascript into the <BODY> of the document where you want it to be located. <FORM METHOD="post" NAME="form" ACTION="" onSubmit="email();return true" ENCTYPE="text/plain"> <TABLE BORDER=0> <TR> <TD ALIGN="right"><B>To:</B></TD> <TD ALIGN="left"><INPUT TYPE="text" NAME="To" SIZE=30> Enter e-mail address</TD> </TR> <TR> <TD ALIGN="right"><B>Subject:</B></TD> <TD ALIGN="left"><SELECT NAME="Subject" SIZE=1> <OPTION SELECTED VALUE="Check out this awesome site">Check out this awesome site <OPTION VALUE="I Love this site, check it out">I Love this site, check it out <OPTION VALUE="The best HTML Help site ever">The best HTML Help site ever <OPTION VALUE="My favorite HTML Help site">My favorite HTML Help site <OPTION VALUE="This site RULZ">This site RULZ <OPTION VALUE="Bookmark this site and return often">Bookmark this URL and return often </SELECT> Pick a subject </TD> </TR> <TR> <TD ALIGN="right"><B>Your Name:</B></TD> <TD ALIGN="left"><INPUT TYPE="text" NAME="Name" SIZE=30><INPUT TYPE="hidden" NAME="Message" VALUE="Check this site out. It's really great! http://www.oocities.org/ResearchTriangle/Node/1533/htmlhelp.html"></TD> </TR> <TR> <TD COLSPAN=2 ALIGN="center"><INPUT TYPE="submit" VALUE="Send it!" ></TD> </TR> </TABLE> </FORM>

Main HTML Help

Site© 1999-2003 Copyright by dcrum@infionline.net