<html>
<title>Meters to Kilometers Length Converter</title>
<body>
<h2>Length Converter</h2>
<p>Type a value in the Meters field to convert the value to Kilometers:</p>
<p>
<label>Meters</label>
<input id="inputMeters" type="number" placeholder="Meters" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)">
</p>
<p>Kilometers: <span id="outputKilometers"></span></p>
<script>
function LengthConverter(valNum) {
document.getElementById("outputKilometers").innerHTML=valNum/1000;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/howto/tryit.asp?filename=tryhow_js_length_converter_meters_to_kilometers by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:39:21 GMT -->
</html>