PDA

View Full Version : What's the function?


CoraLover
02-12-2003, 10:24 AM
Hi, may i know what's the Javascript function that search a string for another string?
For example, i've this string, "This is a string". How do i get the "is" from the given string?

Adam20002
02-12-2003, 11:52 AM
hi,

this should do it

http://www.devguru.com/Technologies/ecmascript/quickref/string_indexof.html