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();
}

DOM How-To


Web Scripting Overview


HTML Input


Web Scripting Examples


Web Scripting Misc


jQuery


node.js

Like it? Help me by telling your friends. Or, Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials