+ 3
Displaying name
I want to know how to do this (JavaScript) : 1. I ask what is the name of the user. (Can I know your name?) 2. It is displayed in an alert box. (Hi (name) nice to meet you) 3. The user clicks ok 4.In the screen, the name is displayed again (Hello, (name) This is my website. If you like it please give me an upvote *********************** Others ********************) (If you can give me an example, please share it on this post)
3 Respuestas
+ 14
Tip: Make more controls on the input.
https://code.sololearn.com/W2AhMmxyXbnK/?ref=app
0
You should learn the course here of JS. At some point it's shown how to do such things, for instance with document.createTextNode() and more
0
@Maz I've try it on my code but can you put it on the second paragraph?