<html>
<head>
<title>Web just for training</title>
<script type="text/javascrip">
function chBG(kolor)
{
document.getElementById('ab').style.background = kolor;
}
</script>
</head>
<body id="ab">
<input type="button" name="b3" value="green" onclick="chBG(this.value)"><br/><br/>
<input type="button" name="b4" value="blue" onclick="chBG(this.value)">
</body>
</html>
Here is my code to change the background color but I does not work!I don't know why, please help me clarify the problem! Thank you!