Hello.
I'm trying to solve a little problem with an uppercase function. It
looks like this:
function uppercase()
{
key = window.event.keyCode;
if ((key 0x60) && (key < 0x7B))
window.event.keyCode = key-0x20;
}
....and it works fine.
I have got an HTML form with many textboxes; until now I performed the
uppercase in all of them.
Now my customer asked me to let the users insert lowcase characters in
just one of them.
I think the best way should be to test the focus on this one
textbox... Fact is, I did not find a satisfactory way to check the
property: a myTextBox.hasFocus does not exist indeed.
Is there anyone who knows how it is possible to do that ? I would like
to be able to change my function more or less in this way:
if (((key 0x60) && (key < 0x7B)) && (myTextBox.hasFocus==false))
etc.
i thank you in advance for your help,
Newcomsas