Bgcolor first program

Hi,

<html>
<body bgcolor=”WHITE”>
<p>Paragraph 1</p>
<script type=”text/javascript”>
document.bgColor = “RED”;
</script>
</body>
</html>

I am new to javascript and trying to run the first program in IE. It just prints the blank screen . please help

<html>
<body style=“background-color:white”>
<p>Paragraph 1</p>
<script type=”text/javascript”>
document.getElementsByTagName(‘body’)[0].style.backgroundColor = ‘red’;
</script>
</body>
</html>