diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window.opener | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/ja/web/api/window.opener')
| -rw-r--r-- | files/ja/web/api/window.opener/index.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/files/ja/web/api/window.opener/index.html b/files/ja/web/api/window.opener/index.html new file mode 100644 index 0000000000..c1f7152c9c --- /dev/null +++ b/files/ja/web/api/window.opener/index.html @@ -0,0 +1,33 @@ +--- +title: window.opener +slug: Web/API/window.opener +tags: + - DOM + - DOM_0 + - Gecko + - Window +translation_of: Web/API/Window/opener +--- +<div>{{ApiRef}}</div> + +<h2 id="Summary" name="Summary">概要</h2> + +<p>現在のウィンドウを開いたウィンドウへの参照を返します。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox"><var>objRef</var> = window.opener; +</pre> + +<h2 id="Example" name="Example">例</h2> + +<pre class="brush:js">if (window.opener != indexWin) { + referToTop(window.opener); +} +</pre> + +<h2 id="Notes" name="Notes">注記</h2> + +<p>別のウィンドウから({{domxref("Window.open")}} を使用して)開かれたウィンドウは、主ウィンドウへの参照を <code>window.opener</code> として保持します。現在のウィンドウが別のウィンドウから開かれたものではない場合、このメソッドは <span style="line-height: 1.5;">NULL</span> を返します。</p> + +<p><span style="line-height: 1.5;">Windows Phone ブラウザは window.opener をサポートしていません(Edge 25.10586.36.0 でテストしました)。opener が異なるセキュリティゾーンにある場合、IE でもサポートされていません。</span></p> |
