You are correct: http://www.w3schools.com/jsref/jsref_indexof.asp