HI,
I have code to set focus on an input area (type="text"
or even to select the default text value...... BUt when it does automatically select the text value I can't write to it. I have to tab out of the field and then back in again to be able to write to it?
Why does it select the text, but not let me change it?
Here is part of my code....
THE TABLE
<tr>
<td width="25%" height="21"></td>
<td width="25%" height="21">New Projected Budget:</td>
<td width="25%" height="21"><input type="text" name="NewBudget" tabindex="1" size="20" value="0"></td>
<td width="25%" height="21"></td>
</tr>
</TABLE>
</FORM>
AND THE END OF THE PAGE WHICH HAS THE SCRIPT
<SCRIPT language=JavaScript>document.frmBudget.NewBudget.select();</SCRIPT>
</BODY>
</HTML>
I have also tried .focus instead of .select or both together.
Any comments?
I have code to set focus on an input area (type="text"
Why does it select the text, but not let me change it?
Here is part of my code....
THE TABLE
<tr>
<td width="25%" height="21"></td>
<td width="25%" height="21">New Projected Budget:</td>
<td width="25%" height="21"><input type="text" name="NewBudget" tabindex="1" size="20" value="0"></td>
<td width="25%" height="21"></td>
</tr>
</TABLE>
</FORM>
AND THE END OF THE PAGE WHICH HAS THE SCRIPT
<SCRIPT language=JavaScript>document.frmBudget.NewBudget.select();</SCRIPT>
</BODY>
</HTML>
I have also tried .focus instead of .select or both together.
Any comments?