aboutsummaryrefslogtreecommitdiff
path: root/files/ja/archive/mozilla/xul/method/openpopup/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/archive/mozilla/xul/method/openpopup/index.html')
-rw-r--r--files/ja/archive/mozilla/xul/method/openpopup/index.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/files/ja/archive/mozilla/xul/method/openpopup/index.html b/files/ja/archive/mozilla/xul/method/openpopup/index.html
new file mode 100644
index 0000000000..a527bd5a85
--- /dev/null
+++ b/files/ja/archive/mozilla/xul/method/openpopup/index.html
@@ -0,0 +1,30 @@
+---
+title: openPopup
+slug: Archive/Mozilla/XUL/Method/openPopup
+tags:
+ - XUL Methods
+ - XUL Reference
+translation_of: Archive/Mozilla/XUL/Method/openPopup
+---
+<div class="noinclude">
+ <span class="breadcrumbs XULRefMeth_breadcrumbs">« <a href="/ja/docs/XUL_Reference" title="/ja/docs/XUL_Reference">XUL リファレンス HOME</a></span></div>
+<dl>
+ <dt><span id="m-openPopup"><code><a href="https://developer.mozilla.org/ja/docs/Mozilla/Tech/XUL/Method/openPopup">openPopup( anchor , position , x , y , isContextMenu, attributesOverride )</a></code></span> </dt>
+ <dd>戻り値の型: <em>戻り値無し</em></dd>
+</dl>
+
+
+<p>特定のノードから見た相対的な指定位置にポップアップを開きます。</p>
+<p>ポップアップは他のノードにアンカーすることも、自由な位置に開く事もできます。ポップアップをノードにアンカーするには、anchor ノードを指定して、ポップアップをどのように開くかを示す文字列を position に設定します。</p>
+
+<p>position が取り得る値は before_start, before_end, after_start, after_end, start_before, start_after, end_before, end_after, overlap, after_pointer のいずれかです。</p>
+
+<p>anchor ノードはポップアップと同じドキュメント内のものである必要はありません。</p>
+
+<p>引数 attributesOverride が true ならば、ポップアップノードの position 属性が引数 position の値を上書きします。attributesOverride が false ならば、position 属性は引数 position が空の場合のみ使用されます。</p>
+
+<p>アンカーされたポップアップでは、引数 x と y はアンカーされた位置からのオフセットとして使用されます。この数値は CSS の pixel 単位で計測されます。</p>
+
+<p>アンカーされないポップアップは、anchor ノードとして null を指定することで作成できます。このポップアップは、ポップアップノードを含むドキュメントの表示領域からの、x と y で指定された相対位置に表示されます。この場合、引数 position と attributesOverride は無視されます。</p>
+
+<p>引数 isContextMenu は、コンテキストメニューの場合は true に、それ以外の場合は false にしてください。この引数はメニュー項目のハイライトに影響します。コンテキストメニューが開かれている間は、それ以前に開かれたメニューはハイライトされず、メニュー内の項目を実行できません。</p>