<textarea id="ta" name="content" style="width:100%" rows="20" cols="80"><%</textarea>
多了<% ?????

解决方案 »

  1.   

    <form name=form1 action="<%=strThisASP%>" method="POST" onsubmit="checkForm(this)">
    这样试试!
      

  2.   

    我多铐了一个<%,不是这个的问题
    也不是form名称的问题。这个好像没影响吧
    我其他的文本框都是这么检查的,都没有问题,就是这个不行
      

  3.   

    ........<script type="text/javascript" src="htmlarea.js"></script>
    <style type="text/css">
    @import url(htmlarea.css);
    html, body {font-family: Verdana,sans-serif;color: #000;}
    a:hover { color: #048; }
    a:active { color: #f00; }
    </style>
    <script type="text/javascript">
    var editor = null;
    function initEditor() {
      editor = new HTMLArea("ta");
      editor.generate();
      return false;
    }
    function checkForm(form){
     alert(form.content.value.length);
    }
    </script>
    </head>
    <body  onload="initEditor()" >
    <form name=form1 action="<%=strThisASP%>" method="POST" onsubmit="return checkForm(this)">
    <textarea id="ta" name="content" style="width:100%" rows="20" cols="80"></textarea>
    <input type="submit">
    </FORM>
      

  4.   

    这个方法我试过了,只有用asp赋给它的值它才能计算出字数,直接用手输入进去然后在页面内检查的就是没有任何反应。