<html>
<script>
var chkWord = new Array( 'select', 'delete', 'update');
function chk(str)
{
for(i=0;i<chkWord.length;i++)
{
var text = str;
var findStr = chkWord[i];
if (text.indexOf(findStr) != -1)
{
alert('있다');
break;
}
else
{
alert('없다');
}
}
}
chk('deletesafasdfa');
</script>
<body >
</body>
</html>