Skip to content

Commit

Permalink
Add sidebar to docs/web/api/htmliframeelement/contentdocument (mdn#16378
Browse files Browse the repository at this point in the history
)

* Add sidebar to docs/web/api/htmliframeelement/contentdocument

* Fix quotes and remove extra parenthesis
  • Loading branch information
samantharamon authored May 22, 2022
1 parent f117767 commit b33df53
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: HTMLIFrameElement.contentDocument
slug: Web/API/HTMLIFrameElement/contentDocument
browser-compat: api.HTMLIFrameElement.contentDocument
---

{{APIRef("HTML DOM")}}

If the iframe and the iframe's parent document are [Same Origin](/en-US/docs/Web/Security/Same-origin_policy), returns a [`Document`](/en-US/docs/Web/API/Document) (that is, the active document in the inline frame's nested browsing context), else returns `null`.

## Example of contentDocument
Expand Down

0 comments on commit b33df53

Please sign in to comment.