javascript_howto thread: Alert function
you can use this in a javascript function when submitting the form
StrObj.indexOf(substr[, startIndex])
if (inputboxtext.indexOf("<Script>", 0)>0)
{
alert("You cant use Script Tags")
}
you should probably add your inputbox.value to a strong object first ;)
afterall the indexOf method comes from the string object.
hope this helps you.
|





