Name
wrap — NN n/a IE 4 DOM 1
Synopsis
Read/Write
Whether the browser should wrap text in a TEXTAREA
element and whether wrapped text should be submitted to the server
with soft returns converted to hard carriage returns. A value of
physical engages word wrapping and converts soft
returns to CR-LF characters in the value submitted to the server. A
value of virtual turns on word wrapping, but does
not include the CR-LF characters in the text submitted with the form.
A value of off turns word wrapping off. The Win32
version of Internet Explorer 4 returns a value of
soft when the WRAP attribute is
set to virtual.
Example
document.forms[0].comments.wrap = "wrap"
Value
One of the constant values (as a string): physical
| off | virtual.
Default
off
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access