From: Mel Smith on
To All you folks who responded:

The select() method works perfectly and I will use it in the future.

Thanks to all !

-Mel Smith


From: Mel Smith on
To VK:

Here is my simple test to illustrate what my difficulty was:

(the select() method resolved my problem. Thank you.

-Mel

******************** markup below **********************
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<title>Input <Tab> Key and 'Focus' Test</title>
</head>
<body onload="document.getElementById('input2').focus();">
<br />
To Demostrate: <br /><br />
1. Using the 'onload focus' clause, one cannot enter characters into the
'input2'<br />
field unless some characters are first removed, <b>BUT</b> <br /><br />
2. Using the Tab Key to move to an input field, one <b>CAN</b> enter
characters into<br />
an input field <b>without</b> first deleting character(s).<br /><br />
Would someone explain why this happens please ?

<br />
Thank you !
<br />
<br />

<input type="text" id="input1" maxlength="6" size="7" value="input1 " />
<br />
<input type="text" id="input2" maxlength="6" size="7" value="input2" />
<br />
<input type="text" id="input3" maxlength="6" size="7" value="input3" />
<br />

</body>
</html>