Mega Code Archive

 
Categories / JavaScript Reference / Javascript Methods
 

IndexOf() Example

<html> <body> <button onclick="var myS = new String('Sample String');  alert(myS.indexOf('String'));"> call string indexOf method </button> </body> </html>