HTMLIFrameElement
The HTMLIFrameElement
interface provides special properties and methods (beyond those of the HTMLElement
interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
Properties
Inherits properties from its parent, HTMLElement
.
HTMLIFrameElement.align
- Is a
DOMString
that specifies the alignment of the frame with respect to the surrounding context. HTMLIFrameElement.allowfullscreen
- Is a
Boolean
that indicates whether or not the inline frame is willing to be placed into full screen mode. See Using full-screen mode for details. HTMLIFrameElement.contentDocument
(en-US) 読取専用- Returns a
Document
, the active document in the inline frame's nested browsing context. HTMLIFrameElement.contentWindow
読取専用- Returns a
WindowProxy
, the window proxy for the nested browsing context. HTMLIFrameElement.frameborder
- Is a
DOMString
that indicates whether to create borders between frames. HTMLIFrameElement.height
- Is a
DOMString
that reflects theheight
HTML attribute, indicating the height of the frame. HTMLIFrameElement.longDesc
- Is a
DOMString
that contains the URI of a long description of the frame. HTMLIFrameElement.marginHeight
- Is a
DOMString
being the height of the frame margin. HTMLIFrameElement.marginWidth
- Is a
DOMString
being the width of the frame margin. HTMLIFrameElement.name
- Is a
DOMString
that reflects thename
HTML attribute, containing a name by which to refer to the frame. HTMLIFrameElement.sandbox
- Is a
DOMSettableTokenList
that reflects thesandbox
HTML attribute, indicating extra restrictions on the behavior of the nested content. HTMLIFrameElement.scrolling
- Is a
DOMString
that indicates whether the browser should provide scrollbars for the frame. HTMLIFrameElement.seamless
- Is a
Boolean
that reflects theseamless
HTML attribute, indicating that the inline frame should be rendered seamlessly within the parent document. HTMLIFrameElement.src
(en-US)- Is a
DOMString
that reflects thesrc
HTML attribute, containing the address of the content to be embedded. HTMLIFrameElement.srcdoc
- Is a
DOMString
that represents the content to display in the frame. HTMLIFrameElement.width
- Is a
DOMString
that reflects thewidth
HTML attribute, indicating the width of the frame.
Methods
No specific method; inherits properties from its parent, HTMLElement
.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard HTMLIFrameElement の定義 |
現行の標準 | The following property has been added: allowFullscreen . |
HTML5 HTMLIFrameElement の定義 |
勧告 | The following properties are now obsolete: scrolling , marginWidth , marginHeight , longDesc , frameBorder , and align .The following properties have been added: srcdoc , sandbox , seamless , and contentWindow . |
Document Object Model (DOM) Level 2 HTML Specification HTMLIFrameElement の定義 |
廃止 | The contentDocument property has been added. |
Document Object Model (DOM) Level 1 Specification HTMLIFrameElement の定義 |
廃止 | Initial definition. |
Browser compatibility
BCD tables only load in the browser
See also
- The HTML element implementing this interface:
<iframe>