Content-Length: 195268 | pFad | http://developer.mozilla.org/ja/docs/Web/API/HTMLTextAreaElement/wrap

HTMLTextAreaElement: wrap プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLTextAreaElement: wrap プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

wrapHTMLTextAreaElement インターフェイスのプロパティで、コントロールがフォーム送信用の値をどのように折り返し表示するかを示します。これは <textarea> 要素の wrap 属性を反映しています。 "hard" 値は、 cols 属性も設定されている場合にのみ効果があることに注意してください。

利用可能な値は wrap を参照してください。既定値は "soft" です。

js
const textareaElement = document.getElementById("comment");
const oldWrap = textArea.wrap;
textArea.wrap = "hard"; // フォーム送信で (CR+LF) を追加

仕様書

Specification
HTML
# dom-textarea-wrap

ブラウザーの互換性

関連情報









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/ja/docs/Web/API/HTMLTextAreaElement/wrap

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy