I want to change the background color of Table row using javascript at run time depending on some parameter. I am using following code. Works fine in IE but NS it does not change at all.
< %@ Language="VBScript"%>
<HTML>
<BODY>
<BR>
<TABLE border = 1>
<TR id=R1>
<TD>Column 1
</TD>
</TR>
<TR>
<TD>Column 2
</TD>
</TR>
</TABLE>
<BR>
< %
dim t
t=true
if t=true then
Response.Write "<SCRIPT Language = ""JavaScript1.2"">" & vbCRLF
Response.Write "R1.bgColor = ""RED"" ;" & vbcrlf & _
"</SCRIPT>" & vbcrlf
end if
% >
</BODY>
</HTML>
<SCRIPT>
</SCRIPT>
< %@ Language="VBScript"%>
<HTML>
<BODY>
<BR>
<TABLE border = 1>
<TR id=R1>
<TD>Column 1
</TD>
</TR>
<TR>
<TD>Column 2
</TD>
</TR>
</TABLE>
<BR>
< %
dim t
t=true
if t=true then
Response.Write "<SCRIPT Language = ""JavaScript1.2"">" & vbCRLF
Response.Write "R1.bgColor = ""RED"" ;" & vbcrlf & _
"</SCRIPT>" & vbcrlf
end if
% >
</BODY>
</HTML>
<SCRIPT>
</SCRIPT>