From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/window/frames/index.html | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 files/ru/web/api/window/frames/index.html (limited to 'files/ru/web/api/window/frames/index.html') diff --git a/files/ru/web/api/window/frames/index.html b/files/ru/web/api/window/frames/index.html new file mode 100644 index 0000000000..271af17e78 --- /dev/null +++ b/files/ru/web/api/window/frames/index.html @@ -0,0 +1,57 @@ +--- +title: Window.frames +slug: Web/API/Window/frames +translation_of: Web/API/Window/frames +--- +

{{APIRef("DOM")}}

+ +

Возвращает само окно, являющееся объектом в виде массива, распечатывая элементы текущего окна.

+ +

Syntax

+ +
frameList = window.frames;
+
+ + + +

Example

+ +
var frames = window.frames; // or // var frames = window.parent.frames;
+for (var i = 0; i < frames.length; i++) {
+  // do something with each subframe as frames[i]
+  frames[i].document.body.style.background = "red";
+}
+
+ +

Specifications

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("HTML WHATWG", "browsers.html#dom-frames", "Window.frames")}}{{Spec2("HTML WHATWG")}} 
{{SpecName("HTML5 W3C", "browsers.html#dom-frames", "Window.frames")}}{{Spec2("HTML5 W3C")}} 
+ +

Browser compatibility

+ + + +

{{Compat("api.Window.frames")}}

-- cgit v1.2.3-54-g00ecf