aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/globaleventhandlers/onmouseup
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-07-20 00:33:12 +0900
committerGitHub <noreply@github.com>2021-07-20 00:33:12 +0900
commitb5b6a8929053e639a12822dfdac9604753c6efef (patch)
tree7517a40027ea8abc3b69ec9e85f0f0a6ad3181f7 /files/ja/web/api/globaleventhandlers/onmouseup
parent0dffa277d3d356e8184b887ed26609d786594565 (diff)
downloadtranslated-content-b5b6a8929053e639a12822dfdac9604753c6efef.tar.gz
translated-content-b5b6a8929053e639a12822dfdac9604753c6efef.tar.bz2
translated-content-b5b6a8929053e639a12822dfdac9604753c6efef.zip
Web/API/GlobalEventHandlers 以下の onclick, onmousedown, onmouseup を更新 (#1505)
2021/07/11 時点の英語版に同期
Diffstat (limited to 'files/ja/web/api/globaleventhandlers/onmouseup')
-rw-r--r--files/ja/web/api/globaleventhandlers/onmouseup/index.html71
1 files changed, 28 insertions, 43 deletions
diff --git a/files/ja/web/api/globaleventhandlers/onmouseup/index.html b/files/ja/web/api/globaleventhandlers/onmouseup/index.html
index 21837138aa..1e61e7795e 100644
--- a/files/ja/web/api/globaleventhandlers/onmouseup/index.html
+++ b/files/ja/web/api/globaleventhandlers/onmouseup/index.html
@@ -1,47 +1,49 @@
---
-title: element.onmouseup
+title: GlobalEventHandlers.onmouseup
slug: Web/API/GlobalEventHandlers/onmouseup
tags:
- - API
- - Event Handler
- - GlobalEventHandlers
- - HTML DOM
- - Property
- - Reference
+- API
+- Event Handler
+- GlobalEventHandlers
+- HTML DOM
+- Property
+- Reference
+browser-compat: api.GlobalEventHandlers.onmouseup
translation_of: Web/API/GlobalEventHandlers/onmouseup
---
<div>{{ApiRef("HTML DOM")}}</div>
-<p><code><strong>onmouseup</strong></code> は {{domxref("GlobalEventHandlers")}} ミックスインのプロパティで、{{event("mouseup")}} イベントを処理する{{domxref("EventHandler" ,"イベントハンドラー")}}です。</p>
+<p><code><strong>onmouseup</strong></code> は {{domxref("GlobalEventHandlers")}} ミックスインのプロパティで、{{event("mouseup")}} イベントを処理する<a href="/ja/docs/Web/Events/Event_handlers">イベントハンドラー</a>です。</p>
-<p><code>mouseup</code> イベントは、ユーザーがマウスボタンを離したときに発生します。</p>
+<p><code>mouseup</code> イベントは、ユーザーがマウスボタンを離したときに発行されます。</p>
-<div class="blockIndicator note">
-<p><strong>メモ:</strong> <code>onmouseup</code> の反対の動作は {{domxref("GlobalEventHandlers.onmousedown", "onmousedown")}} です。</p>
+<div class="notecard note">
+ <p><strong>メモ:</strong> <code>onmouseup</code> の反対の動作は {{domxref("GlobalEventHandlers.onmousedown", "onmousedown")}} です。</p>
</div>
-<h2 id="構文">構文</h2>
+<h2 id="Syntax">構文</h2>
-<pre class="syntaxbox notranslate"><em>target</em>.onmouseup = <var>functionRef</var>;</pre>
+<pre
+ class="brush: js"><em>target</em>.onmouseup = <var>functionRef</var>;</pre>
-<h3 id="値">値</h3>
+<h3 id="Value">値</h3>
-<p><code>functionRef</code> は、関数名または<a href="/docs/Web/JavaScript/Reference/Operators/function">関数式</a>です。この関数は、唯一の引数として {{domxref("MouseEvent")}} オブジェクトを受け取ります。</p>
+<p><code>functionRef</code> は、関数名または<a href="/ja/docs/Web/JavaScript/Reference/Operators/function">関数式</a>です。この関数は、唯一の引数として {{domxref("MouseEvent")}} オブジェクトを受け取ります。</p>
-<h2 id="例">例</h2>
+<h2 id="Example">例</h2>
<p>この例は、マウスでクリックするとトーストが非表示になり、離すと再び表示されます。{{domxref("GlobalEventHandlers.onmousedown", "onmousedown")}} と <code>onmouseup</code> イベントハンドラーを使用します。</p>
<h3 id="HTML">HTML</h3>
-<pre class="brush: html notranslate">&lt;div class="container"&gt;
+<pre class="brush: html">&lt;div class="container"&gt;
&lt;div class="toaster"&gt;&lt;/div&gt;
&lt;div class="toast"&gt;Hello world!&lt;/div&gt;
&lt;/div&gt;</pre>
<h3 id="CSS">CSS</h3>
-<pre class="brush: css notranslate">.container {
+<pre class="brush: css">.container {
position: absolute;
left: 50%;
bottom: 20px;
@@ -75,7 +77,7 @@ translation_of: Web/API/GlobalEventHandlers/onmouseup
<h3 id="JavaScript">JavaScript</h3>
-<pre class="brush: js notranslate">function depress() {
+<pre class="brush: js">function depress() {
toast.classList.add('depressed');
}
@@ -89,37 +91,20 @@ const toast = document.querySelector('.toast');
toaster.onmousedown = depress;
document.onmouseup = release;</pre>
-<h3 id="結果">結果</h3>
+<h3 id="Result">結果</h3>
<p>{{EmbedLiveSample("Example", 700, 200)}}</p>
-<h2 id="仕様">仕様</h2>
+<h2 id="Specifications">仕様書</h2>
-<table class="spectable standard-table">
- <tbody>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG','webappapis.html#handler-onmouseup','onmouseup')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
+{{Specifications}}
-<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
+<h2 id="Browser_compatibility">ブラウザーの互換性</h2>
-<div>
+<p>{{Compat}}</p>
-
-<p>{{Compat("api.GlobalEventHandlers.onmouseup")}}</p>
-</div>
-
-<h2 id="関連情報">関連情報</h2>
+<h2 id="See_also">関連情報</h2>
<ul>
- <li>{{event("mouseup")}} event</li>
+ <li>{{event("mouseup")}} イベント</li>
</ul>