Answers for "how to get input from user in javascript in html"

8

js get input from user

var name = prompt("Please enter your name", "Harry Potter");
Posted by: Guest on December-01-2020
0

how to take input from user in html

<form>
  
  <!-- We can have various types of inputs like: Email, Plain Text, Date etc. -->
  <input type="email" name="user_email" placeholder="Your Email">
  <input type="text" name="user_description" placeholder="Your Description">
  <input type="date" name="current_date" placeholder="Current Date">
  
</form>
Posted by: Guest on May-26-2021

Code answers related to "how to get input from user in javascript in html"

Browse Popular Code Answers by Language