Javascript - User input through HTML input tag to set a Javascript variable?

前端 未结 4 1010
不思量自难忘°
不思量自难忘° 2021-02-03 14:11

I want there to be a textbox on my screen(like the one i\'m typing in now) that you can type in then click a submit button and it sends whatever you typed in the box to javascri

4条回答
  •  梦毁少年i
    2021-02-03 14:31

    Late reading this, but.. The way I read your question, you only need to change two lines of code:

    Accept user input, function writes back on screen.

     give me input
    
    
    
    

提交回复
热议问题