js get input from user
var name = prompt("Please enter your name", "Harry Potter");var answer = prompt("How are you? ");var person = prompt("Please enter your name", "Harry Potter");
if (person != null) {
document.getElementById("demo").innerHTML =
"Hello " + person + "! How are you today?";
}Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
Also in JavaScript:
- jquery replicate div on drag
- javascript is null
- javascript to string
- call node js function from javascript
- how to uncheck a checkbox in jquery
- javascript find last element in array
- how to manage a db connection in javascript
- javascript training
- javascript copy items into another array
- on load hit click event js
- check if something is a letter in js
- focus on input field vuejs event
- jquery add attribute
- adonisjs hook befor save
- javascript element read attribute
- html escape function javascript
- jquery cancel ajax request on click
- javascript promise
- javascript linkify string text
- js array get range
- js disable event listener
- how to set up a json file
- Setting “checked” for a checkbox with jQuery
- login with gmail in react native