Alert box | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Alert box

how to input the user input in the web page and not in the pop up box..help me with this...please!!

5th Aug 2017, 4:10 PM
Darwin
Darwin - avatar
16 Answers
+ 4
Here we go! There are numerous other ways to do that job, here's one. No the easiest one, but you will probably find it usefull if you wanna work in web dev ;) https://code.sololearn.com/WZ6zd0TDK947
5th Aug 2017, 5:07 PM
Drax
Drax - avatar
+ 2
Use the input tag then use the .value to get what the user typed 😊
5th Aug 2017, 4:19 PM
Drax
Drax - avatar
+ 2
Publish your code in the code playground so we can look at it 😉
5th Aug 2017, 4:27 PM
Drax
Drax - avatar
+ 2
Working on it! I will add some comments to the code 😉
5th Aug 2017, 4:38 PM
Drax
Drax - avatar
+ 1
Once you have got what the user typed stored in a variable, you can display it in almost anything using .text or .html
5th Aug 2017, 4:25 PM
Drax
Drax - avatar
+ 1
very very thanks bro.....
6th Aug 2017, 2:15 AM
Darwin
Darwin - avatar
0
thank u
5th Aug 2017, 4:20 PM
Darwin
Darwin - avatar
0
then how to print the input in web page..
5th Aug 2017, 4:23 PM
Darwin
Darwin - avatar
0
but an error occurs as input is not allowed
5th Aug 2017, 4:25 PM
Darwin
Darwin - avatar
0
how can I get the user input in javascript
5th Aug 2017, 4:26 PM
Darwin
Darwin - avatar
0
have a watch that!
5th Aug 2017, 4:30 PM
Darwin
Darwin - avatar
0
it is displayed in the pop up menu and not in the web page
5th Aug 2017, 4:31 PM
Darwin
Darwin - avatar
0
I'm a beginner
5th Aug 2017, 4:31 PM
Darwin
Darwin - avatar
0
have u worked out bro...
5th Aug 2017, 4:46 PM
Darwin
Darwin - avatar