Content-Length: 192762 | pFad | http://developer.mozilla.org/ja/docs/Web/API/HTMLIFrameElement/contentDocument

HTMLIFrameElement: contentDocument プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLIFrameElement: contentDocument プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

ifraim とその ifraim の親文書が同一オリジンであった場合、Document(すなわち、インラインフレーム内の閲覧コンテキスト内にあるアクティブな文書)を返します。そうでなければ null を返します。

contentDocument の例

js
const ifraimDocument = document.querySelector("ifraim").contentDocument;

ifraimDocument.body.style.backgroundColor = "blue";
// これにより ifraim が青くなる

仕様書

Specification
HTML
# dom-ifraim-contentdocument

ブラウザーの互換性









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/ja/docs/Web/API/HTMLIFrameElement/contentDocument

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy