aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/document/selectstart_event
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/document/selectstart_event
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/document/selectstart_event')
-rw-r--r--files/ja/web/api/document/selectstart_event/index.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/files/ja/web/api/document/selectstart_event/index.html b/files/ja/web/api/document/selectstart_event/index.html
new file mode 100644
index 0000000000..448225df42
--- /dev/null
+++ b/files/ja/web/api/document/selectstart_event/index.html
@@ -0,0 +1,73 @@
+---
+title: 'Document: selectstart event'
+slug: Web/API/Document/selectstart_event
+translation_of: Web/API/Document/selectstart_event
+---
+<div>{{APIRef}}</div>
+
+<div>
+<p><a href="/en-US/docs/Web/API/Selection">Selection API</a> の <code><strong>selectstart</strong></code> イベントは新しい選択範囲をユーザが指定した際に発火します。</p>
+
+<p>イベントがキャンセルされた場合、選択範囲は変更されません。</p>
+</div>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th>Bubbles</th>
+ <td>有効</td>
+ </tr>
+ <tr>
+ <th>Cancelable</th>
+ <td>有効</td>
+ </tr>
+ <tr>
+ <th>Interface</th>
+ <td>{{domxref("Event")}}</td>
+ </tr>
+ <tr>
+ <th>Event handler property</th>
+ <td>{{domxref("GlobalEventHandlers.onselectstart", "onselectstart")}}</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="例">例</h2>
+
+<pre class="brush: js">// addEventListener version
+document.addEventListener('selectstart', () =&gt; {
+ console.log('Selection started');
+});
+
+// onselectstart version
+document.onselectstart = () =&gt; {
+ console.log('Selection changed.');
+};
+</pre>
+
+<h2 id="仕様">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('Selection API', '#selectstart-event', 'selectstart')}}</td>
+ <td>{{Spec2('Selection API')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザ互換性">ブラウザ互換性</h2>
+
+<p>{{Compat("api.Document.selectstart_event")}}</p>
+
+<h2 id="参照">参照</h2>
+
+<ul>
+ <li>{{domxref("Document/selectionchange_event", "selectionchange")}}</li>
+</ul>