Also, you can strip complicated things out using DOM.
We use the DOM to strip out HTML tags such as: Removing FONT tag.
if(child.tagName.toUpperCase() == 'FONT'){
child.removeNode();
}
Good luck.
Ryan Duckworth
Macromedia ColdFusion Certified Professional
Uhlig Communications
10983 Granada Lane
Overland Park, KS 66211
(913) 754-4272
_____
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 3:58 PM
To: CF-Talk
Subject: RE: _javascript_ and textarea
> From: Asim Manzur [mailto:[EMAIL PROTECTED]
> I have form with TextArea and _javascript_, which doesn't
> allow user to hit enter key and "|".
>
> The below code is working fine, but if user cut/paster from
> word or notepad then textbox accept the enter key and pipe.
>
> Can someone advise anyway to prevent that??
You handle the keyCode event but not the change (onChange) event which
you need to check also to ensure that a copy past fires off the routine
needed to validate the entry into the box.
Michael T. Tangorre
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

