files/en-us/web/api/htmliframeelement/index.md
{{APIRef("HTML DOM")}}
The HTMLIFrameElement interface provides special properties and methods (beyond those of the {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
{{InheritanceDiagram}}
Inherits properties from its parent, {{domxref("HTMLElement")}}.
<iframe>.browsingtopics content attribute value.<iframe> is credentialless, meaning that its content is loaded in a new, ephemeral context. This context does not have access to the parent context's shared storage and credentials. In return, the {{httpheader("Cross-Origin-Embedder-Policy")}} (COEP) embedding rules can be lifted, so documents with COEP set can embed third-party documents that do not. See IFrame credentialless for a deeper explanation.height HTML attribute, indicating the height of the frame.eager) or on an as-needed basis (lazy).
This reflects the loading HTML attribute.name HTML attribute, containing a name by which to refer to the frame.RequestInit dictionary's privateToken property. Mirrors the content of the associated <iframe> element's privateToken attribute.referrerPolicy HTML attribute indicating which referrer to use when fetching the linked resource.sandbox HTML attribute, indicating extra restrictions on the behavior of the nested content.src HTML attribute, containing the address of the content to be embedded. Note that programmatically removing an <iframe>'s src attribute (e.g., via {{domxref("Element.removeAttribute()")}}) causes about:blank to be loaded in the frame in Firefox (from version 65), Chromium-based browsers, and Safari/iOS.width HTML attribute, indicating the width of the frame.Also inherits methods from its parent interface, {{domxref("HTMLElement")}}.
{{Specifications}}
{{Compat}}