Full version: jsB@nk » Email » Subscribe Form
URL: https://www.javascriptbank.com/subscribe-form.html
The script can create a basic subscribing form.
Full version: jsB@nk » Email » Subscribe Form
URL: https://www.javascriptbank.com/subscribe-form.html
<SCRIPT language=JavaScript type=text/javascript><!--function checkForm() { document.form.Email.value = " " + document.form.Email.value; if (document.form.Name.value == "") { // this part of the script is alert('The Name field is empty!'); return false; } // related to the Name field mail = document.form.Email.value; // this part of the script is if ((mail.indexOf('@') == -1) || (mail.indexOf('.') == -1)) { alert('The E-mail address is invalid!'); return false; } // related to the E-Mail field document.form.AppName.value = navigator.appName; document.form.AppVersion.value = navigator.appVersion; document.form.Resolution.value = window.screen.width + " X " + window.screen.height; return true; }// --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<TABLE align=center border=0 cellPadding=0 cellSpacing=0> <TBODY> <TR> <TD align=middle bgColor=#808080 colSpan=2><FONT color=#ffffff face="verdana, arial, helvetica, sans-serif" size=2><B>Subscribe Form</B> </FONT></TD></TR> <FORM action="mailto:[email protected]?SUBJECT=Subscribe Form" encType=text/plain method=post name=form onsubmit="javascript:return checkForm()" ;><!-- change the E-Mail address and Subject line in the form field above --> <TR> <TD><FONT color=#000000 face="verdana, arial, helvetica, sans-serif" size=1>Name: </FONT></TD> <TD><INPUT name=Name size=30 style="FONT-SIZE: 9pt"> <INPUT name=AppName type=hidden> <INPUT name=AppVersion type=hidden> <INPUT name=Resolution type=hidden> </TD></TR> <TR> <TD><FONT color=#000000 face="verdana, arial, helvetica, sans-serif" size=1>E-mail: </FONT></TD> <TD><INPUT name=Email size=30 style="FONT-SIZE: 9pt"> </TD></TR> <TR> <TD align=middle colSpan=2><FONT face="verdana, arial, helvetica, sans serif" size=1>HTML: <INPUT CHECKED name=Type type=radio value=HTML> Text: <INPUT name=Type type=radio value=Text> </FONT></TD></TR> <TR> <TD align=middle colSpan=2><INPUT style="FONT-SIZE: 9pt" type=submit value=Submit> <INPUT style="FONT-SIZE: 9pt" type=reset value=Reset> </TD></TR></TR></FORM></TBODY></TABLE><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->