var color = document.getElementById('color'); // while processing color.addEventListener('input', function () { alert(color.value); }); // after complete changes color.addEventListener('change', function () { alert(color.value); });