Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
selectionDirection は HTMLTextAreaElement インターフェイスのプロパティで、現在の選択の方向を示します。利用可能な値は "forward"、"backward"、"none" です。 forward の値は、現在のロケールの書字方向で選択が先頭から末尾の方向に行われたことを示し、 backward は逆方向を示します。 none の値は、方向が不明である場合に発生します。これは、 <textarea> でテキストを選択した方向を取得および変更する際に使用することができます。
selectionDirection を新しい値に設定すると、 selectchange および select イベントが発行されます。
文字列で、"forward"、"backward"、"none" のいずれかです。
| HTML # dom-textarea/input-selectiondirection |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024年11月8日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.