shangrilla
Programmer
I want to change the color of the form if a particular label is visible.
lblGo.Attributes.Add("onload", "color();" 'doesn't Work
lblGo.Attributes.Add("onclick", "color();" 'works but doesn't serve my purpose
<script language="javascript">
<!--
function color()
{document.bgColor = "#99cc99";
}
//-->
</script>
Is there some other way of doing this?
Thanks in advance.
lblGo.Attributes.Add("onload", "color();" 'doesn't Work
lblGo.Attributes.Add("onclick", "color();" 'works but doesn't serve my purpose
<script language="javascript">
<!--
function color()
{document.bgColor = "#99cc99";
}
//-->
</script>
Is there some other way of doing this?
Thanks in advance.