I want to change the background color using colorpicker without a click on changecolor button. What I want is to change the background color as I am selecting RGB in colorpicker.
function changecolor(){
let color = document.getElementById('colorpicker').value;
document.body.style.backgroundColor = color;
}
<input id = "colorpicker" type = "color">
<button onclick = "changecolor();"> change Color </button>