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