Tests to see if a substring is embedded in a String, and returns the index position of the first occurrence of the substring defined in the <b>str</b> parameter. If the <b>str</b> substring is not found within the String, <b>-1</b> is returned.
]]></description>
<syntax>
<c>str</c>.indexOf(<c>str</c>)
<c>str</c>.indexOf(<c>str</c>, <c>fromIndex</c>)
</syntax>
<parameter>
<label>str</label>
<description><![CDATA[String: any variable of type String]]></description>
</parameter>
<parameter>
<label>str</label>
<description><![CDATA[String: the substring to search]]></description>
</parameter>
<parameter>
<label>fromIndex</label>
<description><![CDATA[int: the index from which to start the search]]></description>