日期:2014-05-16  浏览次数:20407 次

form js提交没反应
<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 "   />
<title> 平台 </title>
<script   language= "JavaScript ">
function   CheckForm(sServletMap,sAction)
{
if(document.form1.TO_NAME.value== " ")
{
alert( "请添加收信人! ");          
return   false;       }
if(document.form1.CONTENT.value== " ")  
{  
alert( "短信内容不能为空! ");     return   false;  
    }
if(document.form1.CONTENT.value.length <=100)    
        {
form1.action   =   sServletMap   +   "?action= "   +   sAction;
                form1.submit();
}else{
alert( "短信内容最多100个字符! ");        
return   false;         }      
      //if(document.form1.CONTENT.value.length <=100){             }alert(sServletMap+ "?action= "+sAction);  
  //form1.action   =   sServletMap   +   "?action= "   +   sAction;  
}
</script>
</head>
<body   style= "BACKGROUND:   url(/images/bg.gif)   center   50%;   BORDER-COLLAPSE:   collapse ">
<form   name= "form1 "   method= "post "   >
<table   width= "778 "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 "   class= "font1 ">
    <tr>
        <td   align= "center "   valign= "top ">
<table   width= "98% "     border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 "   class= "font ">
          <tr> <td   background= "/images/xxzx/wyly_12.gif "> &nbsp; </td> <td   colspan= "2 "   bgcolor= "#FFF799 ">  
      <table   width= "90% "     border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 "   class= "font2 ">
      <tr> <td   bgcolor= "#FFF799 "   class= "TableData ">
<textarea   cols=40   name= "CONTENT "   rows= "4 "   class= "BigInput "   > </textarea> </td>
<td   width= "295 "   rowspan= "3 "   bgcolor= "#FFF799 ">
<INPUT   type= "hidden "   name= "TO_ID "   >
<textarea   cols= "30 "   rows= "4 "   name= "TO_NAME "       wrap=yes     id= "TO_NAME "   > </textarea>
</td> </tr>
<tr   width= "50% "> <td     width= "50% "   nowrap   bgcolor= "#FFF799 ">
<input   name= "submit "   type= "button "