I am creating a form that uses radio buttons for one of my questions. 

I wish for the radio buttons to change the background colour (each holding a different value)

eg. button 1 changes to red while 2. changes it to blue.

**JavaScript**

```
function changeColour() {
    if("r")
        document.body.style.backgroundColour="#FF0000";
    if("b")
        document.body.style.backgroundColour="#0000FF";
    if("p")
        document.body.style.backgroundColour="#FF00FF";
}

```

**HTML**

```
<div id= "genre">
    What do you bust a move to?
    <form name="music" method="post" action="">
        <p>
        <input type="radio" name="music" value="radio" onBlur="changeColour("b")">Blues
        <input type="radio" name="music" value="radio" onBlur="changeColour("r")">Rock
        <input type="radio" name="music" value="radio" onBlur="changeColour("p")">Pop
    </form>
</div>

```

I am new to this so any help is welcome. Thanks.