form method=post action=largepost.asp name=theform onsubmit="breakitup()"> textarea rows=3 cols=100 name=bigtextarea>a bunch of text.../textarea> input type=submit value=go> /form> script language=javascript> function breakitup() { //set the limit for field size. //如果內容有中文的字符的話,可以設置為:51100 var formlimit = 102399 //get the value of the large input object. var tempvar = new string tempvar = document.theform.bigtextarea.value //if the length of the object is greater than the limit, break it //into multiple objects. if (tempvar.length > formlimit) { document.theform.bigtextarea.value = tempvar.substr(0, formlimit) tempvar = tempvar.substr(formlimit) while (tempvar.length > 0) { var objtextarea = document.createelement("textarea") objtextarea.name = "bigtextarea" objtextarea.value = tempvar.substr(0, formlimit) document.theform.appendchild(objtextarea)