<html>
<head>
<script type="text/javascript">
// The code has two user defined functions
// that allow you to change the background color
of the web page.
function changeBgRed()
{
document.bgColor = "red";
}
function changeBgBlue()
{
document.bgColor = "blue";
}
</script>
</head>
<body
<p align="center">
<span onclick="changeBgRed();">Red</span>
|
<span onclick="changeBgBlue();">Blue</span>
</p>
</body>
</html> |