获取您 自己的 网站 Result Size: 625 x 664
x
 
<!DOCTYPE html>
<html>
<title>Grams to Pounds Weight Converter</title>
<body>
<h2>Weight Converter</h2>
<p>Type a value in the Grams field to convert the value to Pounds:</p>
<p>
  <label>Grams</label>
  <input id="inputGrams" type="number" placeholder="Grams" oninput="weightConverter(this.value)" onchange="weightConverter(this.value)">
</p>
<p>Pounds: <span id="outputPounds"></span></p>
<script>
function weightConverter(valNum) {
  document.getElementById("outputPounds").innerHTML=valNum*0.0022046;
}
</script>
</body>
</html>