HTML DOM IFrame Object
IFrame Object
The IFrame object represents an inline frame in HTML.
An IFrame object is created each time <iframe> appears in an HTML document.
Properties of the IFrame Object
Property | Description |
---|---|
align | Align the iframe according to the surrounding text. |
contentDocument | Document containing the content of the frame. |
frameBorder | Set or return whether to display the border around the iframe. |
height | Set or return the height of the iframe. |
id | Set or return the id of the iframe. |
longDesc | Set or return the URL of the document describing the iframe content. |
marginHeight | Set or return the page margins at the top and bottom of the iframe. |
marginWidth | Set or return the page margins on the left and right sides of the iframe. |
name | Set or return the name of the iframe. |
scrolling | Set or return whether the iframe can have a scrollbar. |
src | Set or return the URL of the document to be loaded into the iframe. |
width | Set or return the width of the iframe. |
Standard Attribute
Property | Description |
---|---|
className | Set or return the class attribute of the element. |
dir | Set or return the text direction. |
lang | Set or return the language code of the element. |
title | Set or return the title attribute of the element. |