when slider value changes js code example Example: javascript update value when slider moves javascript range.addEventListener('input', onInput, false);