From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/window/frameelement/index.html | 112 ++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 files/ja/web/api/window/frameelement/index.html (limited to 'files/ja/web/api/window/frameelement/index.html') diff --git a/files/ja/web/api/window/frameelement/index.html b/files/ja/web/api/window/frameelement/index.html new file mode 100644 index 0000000000..ab266fa993 --- /dev/null +++ b/files/ja/web/api/window/frameelement/index.html @@ -0,0 +1,112 @@ +--- +title: window.frameElement +slug: Web/API/Window/frameElement +tags: + - API + - DOM + - Gecko + - HTML DOM + - Window +translation_of: Web/API/Window/frameElement +--- +
{{ ApiRef }}
+ +

({{HTMLElement("iframe")}} や {{HTMLElement("object")}} のような)ウィンドウが埋め込まれた要素を返します。要素がトップレベルであるか異なるスクリプト生成元をもつ文書に埋め込まれるかのいずれかの場合は、 null を返します。

+ +

構文

+ +
frameEl = window.frameElement;
+
+ + + +
+

このプロパティの名前にもかかわらず、これは{{HTMLElement("object")}}、{{HTMLElement("iframe")}}、または <embed>を含むすべての埋め込みポイント内に埋め込まれた文書の役に立ちます。

+
+ +

+ +
var frameEl = window.frameElement;
+// 埋め込みの場合、要素の URL が 'http://mozilla.org/' に変わります。
+if (frameEl) {
+  frameEl.src = 'http://mozilla.org/';
+}
+
+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状態コメント
{{ SpecName('HTML WHATWG', '#dom-frameelement', 'Window.frameElement') }}{{ Spec2('WebRTC 1.0') }}初期の仕様
+ +

ブラウザー互換性

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本サポート4?{{CompatGeckoDesktop("1")}}5.5?12.1?4?
+
+ +
+ + + + + + + + + + + + + + + + + + + +
機能AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
基本サポート{{CompatUnknown}}{{CompatGeckoDesktop("1")}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf