hey there i am using the following code to assign a classname to an element when the element has got the focus
this is something that i have done before but for some reason this has decided not to work. I am now using IE 6 on a win xp home edition
this is the html line:
<td align="center" ID="help" class="dull"><A HREF="help.asp" tabindex="1" onfocus="javascript:focusText('help');">Help</a></td>
this is the javascript call - i know this won't work in NN but not too bothered about that at the moment
function focusText(theItem) {
document.all[theItem].classname = "hilite";
}
when i do an alert right after the js code it says that the classname that it is using is the hilite one ! but it is not actually changing the display on the page and the new classname is a completly different colour
any ideas would be appreciated !
this is something that i have done before but for some reason this has decided not to work. I am now using IE 6 on a win xp home edition
this is the html line:
<td align="center" ID="help" class="dull"><A HREF="help.asp" tabindex="1" onfocus="javascript:focusText('help');">Help</a></td>
this is the javascript call - i know this won't work in NN but not too bothered about that at the moment
function focusText(theItem) {
document.all[theItem].classname = "hilite";
}
when i do an alert right after the js code it says that the classname that it is using is the hilite one ! but it is not actually changing the display on the page and the new classname is a completly different colour
any ideas would be appreciated !