Hi,

I am new to Javascript, kindly help me with this problem.

I am getting an error Expected ';' on line 5 and Object Expected at Line 17.

The code is as follows:

<HTML>
<HEAD>
<TITLE>OnFocus Event</TITLE>
<SCRIPT LANGUAGE="JavaScript">
Function whitebg()
{
document.bgColor="#FFFFFF";
}
function redbg()
{
document.bgColor="#FF0000";
}
</SCRIPT>
</HEAD>

<BODY>
<p>Focus the button to Set background color of the form</p>
<input type="button" name ="bred" onFocus="redbg()" value="Red">
<input type="button" name ="bwhite" onFocus="whitebg()" value="White"><br>
</BODY>
</HTML>

Thanks in Advance.
Mridul