IT MANAGEMENT
CIO Update
Datamation
eSecurity Planet
ITSMWatch
Intranet Journal
IT Career Planet
Project Manager Planet
Semantic Web
NETWORKING
EnterpriseNetworkingPlanet
InstantMessagingPlanet
EnterpriseStorageForum
PracticallyNetworked
WEB DEVELOPMENT
HTML Goodies
Javascripts.com
HARDWARE & SYSTEMS
EarthWeb Hardware
SysOpt
Virtual Dr.
WorkstationPlanet
SOFTWARE DEVELOPMENT
CodeGuru
Developer
jGuru.com
JARS
Gamelan
EARTHWEBNEWS.COM
Business
Developer
Ecommerce
Enterprise
Networking
Security
Special Reports
Storage
Opinion
Mobility
xSP
Stats
IT MANAGEMENT
NETWORKING
WEB DEVELOPMENT
HARDWARE & SYSTEMS
SOFTWARE DEVELOPMENT
IT NEWS
Events
Jobs
Premium Services
Media Kit
Network Map
E-mail Offers
Vendor Solutions
Webcasts
subjects:
HTML
Javascript
Add a Javascript
Background
Banners
Business
Cookies
Forms
Games
Image
Mathematics
Messages
Multimedia
Music
Navigation
Security
Sound
Statistics
Timedate
Utilities
Technology Jobs
Search EarthWeb Network
internet.commerce
Be a Commerce Partner
Web Development
:
JavaScripts
Find a Javascript
:
FREE Tech Newsletters
Instant Messaging Planet HTML
CIO Update
CodeGuru Update
Enterprise Networking Planet
Practically Networked HTML
Enterprise Storage Forum HTML
Optically Networked HTML
Intranet Journal Update
Datamation IT Management Careers
Datamation IT Management Update
Developer.com Update
Gamelan Java Update
Goodies to Go
Javascript Weekly HTML
JARS Java Update
OpenSource Update
SysOpt Tech Notes
Grid Computing Planet HTML
E-Security Planet HTML
Virtual Dr. Text
Source code for Word Filter:
Word Filter
Word Filter
<textarea rows="3" cols="40" name="user_text" style="border:2 solid #808080; font-family:verdana,arial,helvetica; font-weight:normal; font-size:10pt" onclick="select_area()">Enter your text here...</textarea>
This JavaScript is a "Word Filter". It is a type of form validator. When the user submits some text, the validator will check the text for words that has 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.
© 2002 Premshree Pillai.
*JavaScript is a registered trademark of Sun Microsystems, Inc.