184
rated 0 times
[
185]
[
1]
/ answers: 1 / hits: 17631
/ 14 Years ago, thu, july 1, 2010, 12:00:00
Can someone show me whats wrong with this:
<html>
<script type = text/javascript>
function colourGreen()
{
document.getElementById(button1).style.bgColor = 0xFFFF00;
}
</script>
<body>
<form action=>
<div id = button1>
<input type=button value=Colour>
</div id>
<div id = button2>
<input type=button value=Price up onclick = colourGreen()>
</div id>
<div id = button3>
<input type=button value=Price down>
</div id>
</form>
</body>
</html>
More From » javascript