PDA

View Full Version : invisible focus



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

pkcidstudio
07-26-2006, 04:05 PM
ive put it up and it works fine maybe be more clear on what the problem is.
kelly-

joecool2005
07-27-2006, 01:15 PM
On Internet Explorer when you do the tab, you will not see the cursor blinking. You have to press any to see the cursor.

Joe

pkcidstudio
07-27-2006, 02:31 PM
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp
theres your answer