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>
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>