Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to put a characters limitation on a richtext field?

  • 1 reply
  • 0 have this problem
  • 5 views
  • Last reply by 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)

All Replies (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)