If you post this in the JavaScript forum they're going to give you same thing I am now, so i'll save you a post.
[HTML]<html>
<head>
<script type="text/javascript">
//JavaScript can go in either the head or body elements
//You use the script tag to tell the browser you are using script
//The type attribute tells the browser what type of langauge it is
function change() {
document.bgColor="red";
}
//This generates a function, and that functions name is change
/*document.bgColor tells the browser that what you're changing is in the document of the page, and that your changing the background color (bgColor)*/
</script>
</head>
<body>
<form>
<input type="button" onClick="change()" value="Change" />
<!-- onClick tells the browser that when this is clicked you want this to happen, in this case you want to execute the function change-->
</form>
</body>
</html>[/HTML]
If you have any more questions on this please ask them in the JavaScript forum.
Hope it helps, Thanks, Death