aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmlelement/contextmenu
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/htmlelement/contextmenu
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/htmlelement/contextmenu')
-rw-r--r--files/ja/web/api/htmlelement/contextmenu/index.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/files/ja/web/api/htmlelement/contextmenu/index.html b/files/ja/web/api/htmlelement/contextmenu/index.html
new file mode 100644
index 0000000000..555502b761
--- /dev/null
+++ b/files/ja/web/api/htmlelement/contextmenu/index.html
@@ -0,0 +1,44 @@
+---
+title: HTMLElement.contextMenu
+slug: Web/API/HTMLElement/contextMenu
+tags:
+ - API
+ - Deprecated
+ - Element
+ - HTML
+ - HTML DOM
+ - Property
+ - Reference
+ - UX
+translation_of: Web/API/HTMLElement/contextMenu
+---
+<div>{{APIRef("HTML DOM")}}{{deprecated_header()}}
+<p><span class="seoSummary"><code><strong>HTMLElement.contextMenu</strong></code> プロパティは、{{htmlattrxref("contextmenu")}} 属性を使用して要素に割り当てられたコンテキストメニューを参照します。 メニュー自体は、{{HTMLElement("menu")}} 要素を使用して作成されます。</span></p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">var <var>elementContextMenu</var> = <var>element</var>.contextMenu;
+</pre>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush: js">var contextMenu = document.getElementById("element").contextMenu;
+
+// 最初のメニューエントリのラベルを変更する
+contextMenu.firstElementChild.label = "新しいラベル";
+</pre>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+
+
+<p>{{Compat("api.HTMLElement.contextMenu")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{htmlattrxref("contextmenu")}}</li>
+ <li>{{HTMLElement("menu")}}</li>
+ <li>{{HTMLElement("menuitem")}}</li>
+</ul>
+</div>