Answers for "using prompt in javascript"

8

js get input from user

var name = prompt("Please enter your name", "Harry Potter");
Posted by: Guest on December-01-2020
4

how to get a user input in js

Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
Posted by: Guest on April-29-2020
5

js prompt

var answer = prompt('What is your name?','Joe Blogg');
Posted by: Guest on March-31-2020
4

prompt js

var answer = prompt("How are you? ");
Posted by: Guest on November-30-2020
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

prompt command in javascript

prompt("Enter your UserName");
Posted by: Guest on April-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language