打印〗〖选项
检测表单提交时的提示信息


<Script Language="JavaScript">
<!--
function CheckForm() {
 if (document.SendMail.M_Email.value=="") {
//  SendMail.M_Email.value="必须填写收信人邮箱地址...";
//  alert("必须填写收信人邮箱地址...");
//  EM_M_Email.innerText="<font color=#FF0000>必须填写收信人邮箱地址</font>"
  EM_M_Email.innerHTML="<font color=#FF0000>必须填写收信人邮箱地址</font>"
  return (false);
 }

 if ((document.SendMail.M_Email.value.indexOf("@")==-1)||(document.SendMail.M_Email.value.indexOf(".")==-1)) {
  EM_M_Email.innerHTML="<font color=#FF0000>无效的收信人邮箱地址</font>"
  return (false);
 }
return true;
}
//-->
</Script>


<form name="SendMail" method="post" action="SendMail.asp" onSubmit="return CheckForm();">
<input type="text" name="M_Email" size="20" maxlength="100">&nbsp;<span id="EM_M_Email" style="font-size:12px;color:#000000">填写收信人邮箱地址</span>
<br>
<input type="submit" name="Submit" value="提交" class="Button_ok">
</form>




文章作者:未知