I can't get this to work in Netscape. What is wrong?
Code:
<div id="box1" style="background-color:#ccffcc;">
This is box 1
</div>
<script language="JavaScript">
function color() {
if (document.all) {
box1.style.backgroundColor="blue"; }
else {
box1.bgColor="blue"; }
}
</script>
[code]
Thanks.