JavaScripts   Earthweb  
Events Jobs Premium Services Media Kit Network Map E-mail Offers Vendor Solutions Webcasts

   subjects:
Search EarthWeb Network

internet.commerce
Be a Commerce Partner














Web Development : JavaScripts

Find a Javascript:
FREE Tech Newsletters

Word Filter
  Submitted: 06/24/2002
  By: Premshree Pillai

This JavaScript is a "Word Filter". When the user submits some text, the validator will check the text for words that you specify to be filtered. The words that have to be filtered must be added to the array swear_words_arr. When the user types the text and hits the submit button, if the text contains any word that is present in the array swear_words_arr, the form will not be submitted. The script can be used for validation of swear words etc.

System Requirements: MSIE, Netscape, and Opera
License: freeware
Language: Javascript

Run the code - See the code

*JavaScript is a registered trademark of Sun Microsystems, Inc.