Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Alert function


Message #1 by "aaron" <agflem@y...> on Fri, 22 Nov 2002 08:22:24 -0500
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.


  Return to Index