HTML: Textarea

By Xah Lee. Date: . Last updated: .

textarea tag is for user text input, such as for comments.

Result:

<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();
}
βˆ‘ JS in Depth
XAH
Buy Xah JavaScript Tutorial
βˆ‘ JS in Depth
XAH

JS Obj Ref

DOM


DOM

Overview

Basic Examples

HTML Input

Web Scripting Examples

Web Scripting Misc

jQuery

node.js