The Frame object represents an HTML frame.
The <frame> tag defines one particular window (frame) within a frameset.
For each <frame> tag in an HTML document, a Frame object is created.
The IFrame object represents an HTML inline frame.
The <iframe> tag defines an inline frame that contains another document.
For each <iframe> tag in an HTML document, an IFrame object is created.
Note: The Frame/IFrame object can also use the properties/methods of:
W3C: W3C Standard.
| Property | Description | W3C |
|---|---|---|
| align | Sets or returns the value of the align attribute in an iframe | Yes |
| contentDocument | Returns the document object generated by a frame/iframe | Yes |
| contentWindow | Returns the window object generated by a frame/iframe | No |
| frameBorder | Sets or returns the value of the frameborder attribute in a frame/iframe | Yes |
| height | Sets or returns the value of the height attribute in an iframe | Yes |
| longDesc | Sets or returns the value of the longdesc attribute in a frame/iframe | Yes |
| marginHeight | Sets or returns the value of the marginheight attribute in a frame/iframe | Yes |
| marginWidth | Sets or returns the value of the marginwidth attribute in a frame/iframe | Yes |
| name | Sets or returns the value of the name attribute in a frame/iframe | Yes |
| noResize | Sets or returns the value of the noresize attribute in a frame | Yes |
| scrolling | Sets or returns the value of the scrolling attribute in a frame/iframe | Yes |
| src | Sets or returns the value of the src attribute in a frame/iframe | Yes |
| width | Sets or returns the value of the width attribute in an iframe | Yes |
| Event | Description | W3C |
|---|---|---|
| onload | Script to be run immediately after a frame/iframe is loaded | Yes |
The Frame/IFrame object also supports the standard properties and events.
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.