please dont rip this site

JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Textarea.value Property

Name

Textarea.value Property---user input to the Textarea object

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

textarea.value

Description

value is a read/write string property of the Textarea object. The initial value of value is the same as the defaultValue property--the plain text (i.e., without any HTML tags) that appears between the <TEXTAREA> and </TEXTAREA> tags. When the user types characters into the Textarea object, the value property is updated to match the user's input. If you set the value property explicitly, the string you specify will be displayed in the Textarea object. This value property contains the string that is sent to the server when the form is submitted.

Bugs

In Navigator 2.0, the Textarea object required the use of platform-specific newline characters or newline sequences. Thus, appending the "\n" character (newline character for Unix) to the value property of a Textarea object would not actually start a new line on Windows platforms (which use a sequence of "\r\n" to delimit lines), for example. In Navigator 3.0, this problem has been resolved--any newline character or sequence is automatically mapped to the correct platform-specific sequence.

To workaround the bug on Navigator 2.0 platforms, you'll need a variable that contains the platform-specific newline sequence. One easy way to obtain such a "newline" variable is to create your Textarea element with a default value which consists of a single blank line. Then you can copy the value property of this element; it will contain the newline sequence required on the current platform.

See Also

"Textarea"


Previous Home Next
Textarea.type Book Index top

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell

file: /Techref/language/JAVA/SCRIPT/definitive/refp_413.htm, 5KB, , updated: 2019/10/14 15:00, local time: 2024/11/23 10:13,
TOP NEW HELP FIND: 
18.224.73.124:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/techref/language/JAVA/SCRIPT/definitive/refp_413.htm"> [Chapter 21] Reference: Textarea.value</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .