zig.com Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
  <input type="range" id="a" value="50">100
  +<input type="number" id="b" value="50">
  =<output id="myOutput" name="x" for="a b"></output>
</form>
<p>Click the button to set the result of the calculation above to "150".</p>
<p><strong>Note:</strong> The output element is not supported in Internet Explorer.</p>
<button type="button" onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
  function myFunction() {
    document.getElementById("myOutput").value = "150";
  }
</script>
</body>
<!-- /jsref/tryit.asp?filename=tryjsref_output_value Thu, 06 Feb 2025 20:01:16 GMT -->
</html>