Answers for "Accessing user input through js"

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
0

Accessing user input through js

var x = document.getElementById("myText").value;
Posted by: Guest on February-19-2021
0

how to input from user in javascript

var name = prompt("Please enter your name", "Harry Potter");
Posted by: Guest on August-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language