Javascript passing parameters into function
<p>Hey, i cant seem to get this to work, im a little confused on how im supposed to pass the colour paramaters:</p>

<pre><code>function colourGreen(red, green, blue)
        {
            document.getElementById("button1").style.backgroundColor = 'rgb(red,green,blue)';
        }
</code></pre>

<p>.............
.............</p>

<pre><code>&lt;input type="button" id = "button2" value="Price up" onclick = 'colourGreen(0,255,0)'&gt;
</code></pre>
