Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <title>Knots to KPH Speed Converter</title> <body> <h2>Speed Converter</h2> <p>Type a value in the Knots field to convert the value to KPH:</p> <p> <label>Knots</label> <input id="inputKnots" type="number" placeholder="Knots" oninput="speedConverter(this.value)" onchange="speedConverter(this.value)"> </p> <p>KPH: <span id="outputKPH"></span></p> <script> function speedConverter(valNum) { document.getElementById("outputKPH").innerHTML=valNum*1.852; } </script> </body> </html>