搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How to put a characters limitation on a richtext field?

  • 1 个回答
  • 0 人有此问题
  • 5 次查看
  • 最后回复者为 cor-el

more options

The following code worked with IE, but not with Firefox:

var fieldcontent=document.forms(0).Body.value if (fieldcontent.length > 150)


User Agent

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

The following code worked with IE, but not with Firefox: var fieldcontent=document.forms(0).Body.value if (fieldcontent.length > 150) == User Agent == Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

所有回复 (1)

more options

Use square brackets instead of rounded brackets (it's an array)

var fieldcontent=document.forms[0].Body.value if (fieldcontent.length > 150)