Answers for "input text javascript"

2

HTML DOM Input Text Object

<!DOCTYPE html>
<html>
<body>

<input type="text" id="myText" value="Here is were your Text Input goes">

<button onclick="myFunction()">Try it</button>

<p id="output"></p>

<script>
function myFunction() {
  var x = document.getElementById("myText").value;
  document.getElementById("output").innerHTML = x;
}
</script>

</body>
</html>
Posted by: Guest on February-06-2021
6

how to collect input textbox in html

<label for="name">Name:</label>
  <input type="text" id="name"><br><br>
Posted by: Guest on May-14-2020
2

javascript input field

<!DOCTYPE html> 
<html> 
  <body>
    <input> Here is your inputfield </input>
  </body>
</html>
Posted by: Guest on November-13-2020

Browse Popular Code Answers by Language