Client Side Scripting

A

Arda

Hi there,

I have 2 textboxes one of it is full of text and the second one is empty and ready for the uesr to type exactly the same text with the first textbox. What I want is while the user is typing on the second textbox I want to compare it with the first textbox(at the same time) and if it types a different letter I want to make his/her typing in red color.

Is this possible?If yes, a piece of code will be helpful.

Best wishes,

Arda
 
C

Cowboy \(Gregory A. Beamer\)

I don't have a piece of code, but I have done this very thing before (albeit
not to color text, but to test for "bad text" and play a sound when input).

Look for the KeyPress event in JavaScript in a search engine and you should
find some examples. If not, I can see if I can dig up the application I
wrote to capture KeyPress events.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
Hi there,

I have 2 textboxes one of it is full of text and the second one is empty and
ready for the uesr to type exactly the same text with the first textbox.
What I want is while the user is typing on the second textbox I want to
compare it with the first textbox(at the same time) and if it types a
different letter I want to make his/her typing in red color.

Is this possible?If yes, a piece of code will be helpful.

Best wishes,

Arda
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top