Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q132 Is there a maximum string length?

You are here: irt.org | FAQ | JavaScript | Text | Q132 [ previous next ]

Netscape 2 (16bit at least) has problems when parsing the html doc, when it discovers long strings.

The code in the infamous scrollit_r21 function addresses this. You'll notice that the author used smaller strings m1, m2, etc, b4 assigning the full string msg=m1+m2 etc.

As a general rule, keep the complete line of script below 256 chars if you intend your scripts to work with all browsers.

©2018 Martin Webb