+ 3

How to use input in JavaScript?

I have seen we can use input in prompt command of JavaScript can we input without prompt command.?

16th May 2020, 9:48 AM
𝖆𝖊𝖙𝖍𝖊𝖗
𝖆𝖊𝖙𝖍𝖊𝖗 - avatar
4 Antworten
+ 1
here’s an example i wrote for you. it’s the same as SOUPTIK NATH explained. https://code.sololearn.com/WIteUNirxVfR/?ref=app
16th May 2020, 10:04 AM
Brian R
Brian R - avatar
+ 2
Make a input type text and make a submit button when the button is clicked extract the text from the text field
16th May 2020, 9:59 AM
Souptik Nath
Souptik Nath - avatar
+ 1
Oh! thanks for help
16th May 2020, 10:07 AM
𝖆𝖊𝖙𝖍𝖊𝖗
𝖆𝖊𝖙𝖍𝖊𝖗 - avatar
+ 1
YES, an example as follows: <input type="text">
16th May 2020, 10:18 AM
JaScript
JaScript - avatar