Hi, there is such a thing, how to use js in the field to type in the word "Hello."?

  • js is not a hammer, it is better not to drive in and assign element.value="Hello."; - zb '
  • for the task described by you js is not needed, you can get by with the keyboard, hands and primitive motor skills. - Vyacheslav Danshin
  • The fact of the matter is to make a script - Lifan
  • It's hard to imagine a script that drives in some kind of field, say hello. A lot of questions arise, what a field is, what to drive in, how the script learns about the word to be driven, etc ... - Vyacheslav Danshin

1 answer 1

 document.getElementById (id).value = "Hello"; // для textarea document.getElementById (id).innerHTML = "Hello"; // для div