JavaScript Reference/Javascript Properties/wrap
Содержание
"wrap" Example
<source lang="javascript">
<html> <body> <textarea id="W1" rows="4"> Long text . . . . . . Long text . . . </textarea> <textarea id="W2" rows="4"> Long text . . . . . . Long text . . . </textarea> <textarea id="W3" rows="4"> Long text . . . . . . Long text . . . </textarea> <script language="JavaScript"> document.all.W1.wrap = "soft"; document.all.W2.wrap = "hard"; document.all.W3.wrap = "off"; </script> </body> </html>
</source>
"wrap" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+
| Applied_To |<textarea> | +----------------+--------------------------------------------------------------+ </source>"wrap" Possible Values
<source lang="javascript">Possible Values soft the default;
word wrapped without carriage returns and line feedshard word wrapped with carriage
returns and line feedsoff no word wrapping
</source>
"wrap" Syntax and Note
<source lang="javascript">Note: Read and write property. How word wrapping should be handled in the element.
Syntax:
document.all.elementID.wrap = value
</source>