Javascript Mouse Events

This is an example of a JS programme that will display JS mouse events,

Option 1: Click the button and change the background to black

Option 2: Hover over the box and change the background to green.

Option 3: Move off the box and change the background to white

Option 4: Click and hold down the button and change the background to yellow

Option 5: There is a onmouseover event as well here but the onmousemove overrides it as it comes after the over event, the background would go red.