Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <title>Feet to Meters Length Converter</title>
- <body>
- <h2>Inches to meters converter</h2>
- <p>Type a value in the Feet field to convert the value to Meters:</p>
- <p>
- <label>Inches</label>
- <input id="inputFeet" type="number" placeholder="enter inches" oninput="LengthConverter(this.value)" onchange="LengthConverter(this.value)">
- </p>
- <p>Meters: <span id="outputMeters"></span></p>
- <i>Design & developed by students of 57 Batch,Department of Pharmacy,UODA</i>
- <script>
- function LengthConverter(valNum) {
- document.getElementById("outputMeters").innerHTML=valNum*0.0254;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement