DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to get a user input in js
Copyvar
name
=
window
.
prompt
(
"Enter your name: "
)
;
alert
(
"Your name is "
+
name
)
;
Source by www.mikedane.com #
PREVIOUS
NEXT
Tagged:
#user
#input
#js
ADD COMMENT
Topic
COMMENT
Name
3+8 =
Submit