>The important thing is not the font, but what chr(176) shows, namely a greyish background. So if you wantt to start with an empty string, let the empty string not be empty, but a sring of only chr(176)s, like repl(chr(176),20). When the user has finished typing in, you end up with a string which contain the entered text, the entered spaces and a lot of chr(176)s. So it is very simple to get EXACTLY what the customers have entered, namely chrtran(txtInput.value,chr(176),'').
>
>I have used this technique many times, it's very elegant and easy to implement. However, in order to also let the user use backspace correctly, I start with a loooong string, like repl(chr(176),1000). Then the user must really struggle hard to fool your code.
Tore,
How do you handle END key?
--sb--