this function fires on mouseout of an input box. If the input box has focus, I don't want this to happen. But, alas, it ignores my if statement. What can I do? Please help.
function low_lite()
{
if (!this.focus) //or even if(this.focus==false)
{
element.style.color="#000066"
element.style.backgroundColor="#FFFFFF"
element.style.borderWidth="1px 1px 1px 1px"
element.style.borderStyle="solid"
element.style.borderColor="#666699"
}
} Catch the vigorous horse of your mind!
function low_lite()
{
if (!this.focus) //or even if(this.focus==false)
{
element.style.color="#000066"
element.style.backgroundColor="#FFFFFF"
element.style.borderWidth="1px 1px 1px 1px"
element.style.borderStyle="solid"
element.style.borderColor="#666699"
}
} Catch the vigorous horse of your mind!