A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ja/docs/Web/API/HTMLTextAreaElement/selectionDirection below:

HTMLTextAreaElement: selectionDirection プãƒãƒ‘ティ - Web API

HTMLTextAreaElement: selectionDirection プロパティ

Baseline Widely available

selectionDirection は HTMLTextAreaElement インターフェイスのプロパティで、現在の選択の方向を示します。利用可能な値は "forward"、"backward"、"none" です。 forward の値は、現在のロケールの書字方向で選択が先頭から末尾の方向に行われたことを示し、 backward は逆方向を示します。 none の値は、方向が不明である場合に発生します。これは、 <textarea> でテキストを選択した方向を取得および変更する際に使用することができます。

selectionDirection を新しい値に設定すると、 selectchange および select イベントが発行されます。

値

文字列で、"forward"、"backward"、"none" のいずれかです。

例
const textarea = document.getElementById("text-box");
const end = textarea.selectionDirection;
仕様書 ブラウザーの互換性 関連情報

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4