JS DOM: Textarea
What is Textarea
textarea
tag is for user text input, such as for reader's comments.
Textarea Example
Result:
Code
<textarea id="textArea49539" rows="5" cols="40">type text here</textarea> <p>Result:<br /> <span id="showBox62540"></span></p>
{ const textArea49539 = document.getElementById("textArea49539"); const showBox62540 = document.getElementById("showBox62540"); const f_update = (() => { showBox62540.textContent = textArea49539.value; }); textArea49539.addEventListener("input", f_update, false); f_update(); }