Menu
Please look into to code why the second part is not working
[B]Current(working)
function doTest(txtFile, searchFor)
{
fetchText(txtFile);
setTimeout(“alert(-1 != text.indexOf(‘” + searchFor + “‘))”, 750);
}
[B]Required(not working)
function doTest(txtFile, searchFor)
{
fetchText(txtFile);
var a = alert(text.indexOf(+searchFor));
alert(‘a:::: ‘+a);
}