HTML DOM Frame and IFrame objects
Frame object
Frame objects represent an HTML framework.
The label defines a specific window (frame) in the frame.
Every time you appear in an HTML document, a Frame object is created.
The IFrame object
The IFrame object represents an inline framework of HTML.
The label defines an inline framework that contains another document.
For every time an IFrame object appears in an HTML document, an IFrame object is created.
Frame/IFrame object properties
W3C: W3C standard.
Attributes | describe | W3C |
---|---|---|
align | The IFRAME is arranged according to the surrounding text. | Yes |
contentDocument | A document that accommodates the contents of the frame.Returns the document object generated by Frame / iframe. | Yes |
contentWindow | Returns the Window object generated by Frame / iframe. | No |
frameBorder | Set or return to whether the border around the frame is displayed. | Yes |
height | Set or return the height of IFRAME. | Yes |
longDesc | Set or returns the URL that contains the framework content description document. | Yes |
marginHeight | Set or return to the top of the iFrame and the page blank on the bottom. | Yes |
marginWidth | Set or return the left and right of the frame / iframe. | Yes |
name | Set or returns the name of the frame / iframe. | Yes |
noResize | Set or return the frame to adjust the size. | Yes |
scrolling | Set or return the frame to have a scroll bar. | Yes |
src | Set or return to the URL of the document loaded into the frame. | Yes |
width | Set or return the width of the IFRAME. | Yes |
Frame/IFrame object event
Event | Describe | W3c |
---|---|---|
onload | The script is executed as soon as the frame is loaded. | Yes |
Standard properties and events
Frame/IFrame objects also support standard properties and events.