how to get an index of substring?

wxdqz

New Member
Hi,

i have a <div id=test>dynamic string</div>.
inside of <script language="JavaScript">, i want to find an position of a substring from the dynamic string. in java, we have int i = aString.indexof(aSubstring). could you please tell me how it works for the DHTML?
many thanks,

advancedobj
 
Back
Top