Returns the position of a substring, index starting from 0.
Usage
Client side: Y
Server side: Y
Syntax
Integer indexOf(String string, String subString)
Argument
string
The string to be searched. The argument can be any string, if string is null, -1 will be returned.
subString
The string to search. The argument can be any string, if it is null, -1 will be returned.
Return
If the string argument occurs as a substring within this object, then the index of the first character of the first such substring is returned; if it does not occur as a subString, -1 is returned.