Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLIFrameElement Constructor() : HTMLIFrameElement
Creates an instance of the HTMLIFrameElement.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ | ||
HTMLIFrameElement() : HTMLIFrameElementCreates an instance of the HTMLIFrameElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
src
: String
Specifies the address of a page that the nested browsing context is to contain.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
srcdoc
: String
Specifies the content of the page that the nested browsing context is to contain.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
name
: String
The name of the nested browsing context.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
sandbox
: DOMSettableTokenList
Enables a set of extra restrictions on any content hosted by the iframe.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
seamless
: Boolean
Indicates that the iframe element's browsing context is to be rendered in a manner that makes it appear to be part of the
containing document (seamlessly included in the parent document).
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
width
: String
Specifies the width of the iframe.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
height
: String
Specifies the height of the iframe.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
contentDocument
: Document
The Document object of the active document of the iframe element's nested browsing context.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
|
contentWindow
: WindowProxy
The WindowProxy object of the iframe element's nested browsing context.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 5.0+ | 3.0+ | 3.0+ |
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
References
Availability
JavaScript 1.2|WhatWG