Random color generator

HTML

<input 
    type="button" 
    value="Change background"
    onclick="document.body.style.backgroundColor = '#' + Math.random().toString(16).slice(2, 8);"
>

CSS

*{ margin:20px; }