T
test9991014
Hi all,
I'm altering a page whose background color being set in CSS
somewhere. But I need to change the background color
in Javascript. I tried doing so with this:
document.bgcolor = "red";
alert(document.bgcolor);
When run, the value is apparently set because the alert displays
"red", however the page itself does not change color.
Anybody know what's going on?
Thanks.
I'm altering a page whose background color being set in CSS
somewhere. But I need to change the background color
in Javascript. I tried doing so with this:
document.bgcolor = "red";
alert(document.bgcolor);
When run, the value is apparently set because the alert displays
"red", however the page itself does not change color.
Anybody know what's going on?
Thanks.