I have 2 input boxes that are not disabled. When either gets focus no cursor is displayed and any text that you type in is not displayed. There are several events attached to these elements, but there are no js errors. Expected behavior occurs in IE7, IE8, FF2, FF3, Chrome, and Safari.
EDIT: Here is a code example of the events being attached. Note that I am using YUI 2.
YAHOO.util.Event.addListener(searchInputTop, 'focus', searchInputOnFocus);
YAHOO.util.Event.addListener(searchInputTop, 'blur', searchInputOnBlur);
searchInputOnBlur = function (e)
{
if (e)
{
target = (e.target || e.srcElement);
}
if (target && !target.value || target.value === "")
{
target.value = someDefault;
}
target.className = 'someclass';
};
searchInputOnFocus = function(e)
{
if (e)
{
target = (e.target || e.srcElement);
}
if (target.value === currentDefaultText)
{
target.value = "";
}
target.className = "";
};
UPDATE:
I don't think any of my code has anything to do with it. Any page that I view in IE6 that has input boxes has the same behavior. I'm running IE6 by using Multiple IE's under Virtual box with Win Xp service pack 3.