Hi,
.http://de.selfhtml.org/javascript/objekte/string.htm#index_of@title=indexOf
Bei mir funzt das nur beim ersten Buchstaben, danach net mehr. Wenn ich also Berlin suche, dann findet er es bei der EIngabe B, aber bei Be nicht mehr.
Dann machst du wohl was falsch.
alert("Berlin".indexOf("Be")) gibt in allen meinen Testbrowsern das erwartete Ergebnis aus.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“