dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Web
Expertise: All
Feb 25, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Adding Soft Word Wrap to the HTML TextArea Element

When you type inside the <TEXTAREA> element in Netscape Navigator 4.5, the text scrolls horizontally. You need to press Enter to create a new line. Internet Explorer 4 doesn't require a carriage return to wrap the text at the edge of the text area box. To make sure that both browsers wrap text the same way inside the <TEXTAREA> element, you can add the 'wrap' attribute to the element. Set the wrap attribute value to 'soft' for a soft wrap. For example:
 
<TEXTAREA id="text1" name="text1" wrap="soft" rows=10 cols=60></TEXTAREA>
Using wrap="soft" is especially important if you are using script to update text inside a <TEXTAREA> element and want the text to wrap nicely in Navigator 4.5.
Ken Cox
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date