Answers for "input string in javascript"

3

javascript prompt

var person = prompt("Please enter your name", "Harry Potter");

if (person != null) {
  document.getElementById("demo").innerHTML =
  "Hello " + person + "! How are you today?";
}
Posted by: Guest on July-29-2020
0

get input string js

document.getElementById('textbox_id').value to get the value of desired box

For example, document.getElementById("searchTxt").value;
Posted by: Guest on March-03-2021

Code answers related to "input string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language