|
Email Form & Pop Up Message Window Try the form below, sending me an email. Watch the window that comes up once you have sent it! Mailto Form <SCRIPT> function runMail (form,button) { var SendTo= 'mailto:' +(form.ToWho.value); form.action = SendTo; form.submit() sendWin= open ('','anonwin','width=200,height=200,status=yes,toolbar=no,menubar=no,history=no'); sendWin.document.write ('<BODY BGCOLOR="#000000" TEXT="#FFFFFF" VLINK="#008000" ALINK="#000080">') sendWin.document.write ('</BODY>') sendWin.document.write('<CENTER>'); sendWin.document.write('Thankyou for your comments. <BR>'); sendWin.document.write('</CENTER>') return; } </SCRIPT> This goes into the <BODY> of your page... <H3>Mailto Form</H3> <FONT FACE="Arial" SIZE="1"> <FORM NAME="anymail" METHOD="POST" ENCTYPE="text/plain"> <P> To: <BR> <INPUT TYPE="TEXT" NAME="ToWho" SIZE=30 VALUE="ancient@bri.net.au"> <BR> <P>Subject: <BR> <INPUT TYPE="TEXT" NAME="subj" SIZE=40 VALUE="Re:Ancient Future Designs"> <BR> <P>Body Message <BR> <TEXTAREA ROWS=10 COLS=50 NAME="message" VALUE=""> </TEXTAREA><BR> <P> <INPUT TYPE="Submit" VALUE="Do it!" onClick="runMail(this.form, this)"> </FORM> <!-- END OF SCRIPT --> What you need to edit is the email address you see above and the name of the page. (where it says "Re:Ancient Future Designs") That's it. |