Forum Moderators: open
<HTML>
<HEAD>
<TITLE>Highlight</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin --
function onFocus( source ) {
source.style.backgroundColor='#FFFFCC';
}
function onBlur( source ) {
source.style.backgroundColor='#FFFFFF';
}
//-- End -->
</SCRIPT>
</HEAD>
<BODY>
<FORM NAME="mainform">
<INPUT TYPE="TEXT" NAME="FIRSTNAME" onfocus="onFocus(this);" onblur="onBlur(this);">First Name
<INPUT TYPE="TEXT" NAME="LASTNAME" onfocus="onFocus(this);" onblur="onBlur(this);">Last Name
</FORM>
</BODY>
</HTML>
I realize the above won't work with Netscape 4 the way it is, but does anyone know if it's possible to achieve this effect at all in NS4?