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

Q1071 indexOf in combination with charAt does not work

irt.org | Knowledge Base | JavaScript | Bugs | Q1071 [ previous next ]

Q1071 indexOf in combination with charAt does not work

Symptom: if (astring.indexOf(bstring.charAt(i)) !=-1) returns the index of the current bstring char in bstring instead of in astring.

Affects: Netscape 2.x

Workaround: ch = bstring.charAt(i); if (astring.indexOf(ch) !=-1) ...


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.