convert mph to kph
<p> </p>
<html>
<title>MPH to KPH Speed Converter</title>
<body>
<h2>Speed Converter</h2>
<p>Type a value in the MPH field to convert the value to KPH:</p>
<p>
<label>MPH</label>
<input id="inputMPH" onchange="speedConverter(this.value)" oninput="speedConverter(this.value)" placeholder="MPH" type="number" />
</p>
<p>KPH: <span id="outputKPH"></span></p>
<script>
function speedConverter(valNum) {
document.getElementById("outputKPH").innerHTML=valNum*1.609344;
}
</script>
</body>
</html>
Speed Converter
Type a value in the MPH field to convert the value to KPH:
KPH:
कोई टिप्पणी नहीं