joecool2005
07-26-2006, 03:39 PM
Hi,
I don't know why the focus is invisible when I press tab to go to the next field. The focus will appear when you press any key. How can I fix it?
---------------------------------------------------------------------------------------
<script type="text/javascript">
function setStyle(x)
{
document.getElementById(x).value="hello"
document.getElementById(x).focus()
}
</script>
<input type="text" value="Joe" onfocus="setStyle(this.id)" id="fname">
<br />
<input type="text" value="Cool" onfocus="setStyle(this.id)" id="lname">
---------------------------------------------------------------------------------------
thx
Joe
I don't know why the focus is invisible when I press tab to go to the next field. The focus will appear when you press any key. How can I fix it?
---------------------------------------------------------------------------------------
<script type="text/javascript">
function setStyle(x)
{
document.getElementById(x).value="hello"
document.getElementById(x).focus()
}
</script>
<input type="text" value="Joe" onfocus="setStyle(this.id)" id="fname">
<br />
<input type="text" value="Cool" onfocus="setStyle(this.id)" id="lname">
---------------------------------------------------------------------------------------
thx
Joe