Hey I'm learning javasript and making a text game and I have a question. I used to program qbasic. In qbasic to get input you write INPUT "WHAT IS YOUR NAME", NAME$. Where name$ is the variable it saves the input as. Is there anything like this in javascript. Where it just has like a blinking command line cursor on the webpage where the user types input and it saves it as a variable. I'm not looking to use prompt or a form.

Also, getting more advanced here. How would you get input while running other code. To where the user can enter input at the blinking cursor but mean while its looping running other code. Thanks in advance.