11.06.2013 javascript javascript, в строке подстроку, строки
var str="Hello world, welcome to the universe."; var n=str.indexOf("welcome"); if(n < 0){ alert('no'); }else{ alert('yes'); }