javascript update value when slider moves javascript

JavaScript
range.addEventListener('input', onInput, false);
Source

Also in JavaScript: