Answers for "JavaScript prompt hello name"

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
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

JavaScript prompt hello name

<style>#SCcont16882{width: 100%;padding-top: 56.25%;position: relative;}#SCgFrame16882 {position: absolute;top: 0;left: 0;bottom: 0;right: 0;}</style>
                <div id="SCcont16882">
                  <iframe id="SCgFrame16882" frameborder="0" allowfullscreen="" mozallowfullscreen="" webkitallowfullscreen="" hspace="0" vspace="0" scrolling="none" src="https://slotcatalog.com/en/play/Mahjong-Ways-2" width="100%" height="100%"></iframe>
                </div>
Posted by: Guest on August-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language