setting up background color using JavaScript


<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8" />
<title>Chapter 1, Example 1</title>
</head>
<body bgcolor="white">
<p>Paragraph 1</p>
<script>
document.bgColor = "blue";
</script>
</body>
</html>

Key source : Beginning JavaScript, 5th Edition (wrox)

Leave a comment