|
|
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. |
-- div -->
|