<!DOCTYPE html> <title>Dynamic manipulation of textarea.wrap</title> <link rel=help href=http://www.whatwg.org/html5/#dom-textarea-wrap> <link rel=author title=Ms2ger href=mailto:ms2ger@gmail.com> <textarea wrap=off cols=20>01234567890 01234567890 01234567890</textarea> <script> document.getElementsByTagName("textarea")[0].setAttribute("wrap", "soft"); </script>