Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<title>Kilometers to Inches Length Converter</title>
<body>
<h2>Length Converter</h2>
<p>Type a value in the Kilometers field to convert the value to Inches:</p>
<p>
  <label>Kilometers</label>
  <input id="inputKilometers" type="number" placeholder="Kilometers" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)">
</p>
<p>Inches: <span id="outputInches"></span></p>
<script>
function LengthConverter(valNum) {
  document.getElementById("outputInches").innerHTML=valNum*39370;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/howto/tryit.asp?filename=tryhow_js_length_converter_kilometers_to_inches by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 14:31:32 GMT -->
</html>