<!--This is the essential code for the page changing background colour:-->

<!-- |Back to: changing background colours||


<html>

<head>

<title>

Changing background colour (bgColor) in java script

</title>

<script type="text/javascript">

<!--

function red()

{

document.bgColor="red"

 

}

 

function blue()

{

document.bgColor="blue"

 

}

function fuchsia()

{

document.bgColor="fuchsia"

 

}

function yellow()

{

document.bgColor="yellow"

 

}

function white()

{

document.bgColor="white"

 

}

// -->

</script>

</head>

<body bgcolor="#FFFFFF">

<table border="0" cellpadding="5" cellspacing="0">

<tr>

<td bgcolor="red">

<a href="#" onclick="red()">

red

</a>

</td>

<td bgcolor="red">

<a href="#" onclick="blue()">

blue

</a>

</td>

</tr>

<tr>

<td bgcolor="#ff00ff">

<a href="#" onclick="fuchsia()">

fuchsia

</a>

</td>

<td bgcolor="yellow">

<a href="#" onclick="yellow()">

yellow

</a>

</td>

</tr>

</table>

</body>

</html>


MenuWriter(); NextPreviousWriter() //--> [If you need to learn more about HTML visit the HTML Tutorial]

I am always pleased to hear from you.
Send your comments to