Javascript function to change button colour
<p>Can someone show me whats wrong with this:</p>

<pre><code>&lt;html&gt;

    &lt;script type = "text/javascript"&gt;
        function colourGreen()
        {
            document.getElementById("button1").style.bgColor = 0xFFFF00;
        }
    &lt;/script&gt;
    &lt;body&gt;

        &lt;form action=""&gt;
            &lt;div id = "button1"&gt;
                &lt;input type="button" value="Colour"&gt;
            &lt;/div id&gt;
            &lt;div id = "button2"&gt;
                &lt;input type="button" value="Price up" onclick = "colourGreen()"&gt;
            &lt;/div id&gt;
            &lt;div id = "button3"&gt;
                &lt;input type="button" value="Price down"&gt;
            &lt;/div id&gt;
        &lt;/form&gt;

    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
