Javascript Reference
Categories: TEXTAREA

javascript TEXTAREA wrap

@March 15, 2008, 1:22 a.m.
wrapFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  


Indicates 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 hard engages word-wrapping and converts soft returns to CR-LF characters in the value submitted to the server. A value of soft 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.

document.forms[0].comments.wrap = "soft";

One of the constant values (as a string): hard | off | soft.



Under moderation.
berr - 2016-01-24
Under moderation.
froeuk - 2015-12-08
Under moderation.
mojji - 2015-12-02

Powered by Linode.