how to get a user input in js
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
how to get a user input in js
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
javascript prompt
var person = prompt("Please enter your name", "Harry Potter");
if (person != null) {
document.getElementById("demo").innerHTML =
"Hello " + person + "! How are you today?";
}
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>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us