Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q132 Is there a maximum string length?

irt.org | Knowledge Base | JavaScript | Text | Q132 [ previous next ]

Q132 Is there a maximum string length?

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.


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.