Hai,
This function is not working on Netscape.
Error Type: Event not supported.
On Focus for a button the background color should change and
On Blur the color should be the original color.
The code I used is:
<SCRIPT LANGUAGE="JAVASCRIPT">
function highlightButton(s)
{
if(s=="")
{
if ("INPUT"==event.srcElement.tagName)
event.srcElement.className="formbutton";
}
else{
if ("INPUT"==event.srcElement.tagName)
event.srcElement.className=s
}
}
</SCRIPT>
<input type="submit" class="formbutton" name="Submit1" value="Login" onfocus="highlightButton('start')" onblur="highlightButton('')">
Any suggestions???
---Ajay