Afficher un message
Vieux 19/03/2008, 14h38   #1
test9991014@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Page background color won't change.

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.
  Réponse avec citation
 
Page generated in 0,06864 seconds with 9 queries