PDA

View Full Version : Problem with bgcolor


sicknesslife
08-27-2002, 10:15 PM
hello,

I am trying to access the bgcolor of a document and it is not working, any help would be much appreciated.

here is my code:



<html>
<head>
<script language = "javascript">

function colorChange()
{
window.document.bgcolor ="green";
};
</script>
</head>

<body>
<a href="#" onClick="colorChange()"; return false>click me</a>

</body>
</html>

jujubees
08-27-2002, 10:25 PM
Try it with bgColor ...

Mr J
08-27-2002, 10:56 PM
Definately the capital C

sicknesslife
08-27-2002, 10:57 PM
it worked, I can't believe I made such a silly error, sorry for wasting you time, thanx for the help