Here is my code.If indexof function not find any result,print out -1.I would like to change it.
function searchForString() { var str = document.getE