Easy Tutorial
❮ Event Onselect Prop Style Maxwidth ❯

HTML DOM


Frame Object

The Frame object represents an HTML frame.

The <frame> tag defines a specific window (frame) within a frameset.

Each time the <frame> tag appears in an HTML document, a Frame object is created.


IFrame Object

The IFrame object represents an HTML inline frame.

The <iframe> tag defines an inline frame that contains another document.

Each time the <iframe> tag appears in an HTML document, an IFrame object is created.


Frame/IFrame Object Properties

W3C: W3C Standard.

Property Description W3C
align Aligns the iframe according to the surrounding text. Yes
contentDocument The document contained within the frame. Returns the document object generated by the frame/iframe. Yes
contentWindow Returns the window object generated by the frame/iframe. No
frameBorder Sets or returns whether to display a border around the frame. Yes
height Sets or returns the height of the iframe. Yes
longDesc Sets or returns the URL to a document that describes the frame content. Yes
marginHeight Sets or returns the top and bottom margin of the iframe. Yes
marginWidth Sets or returns the left and right margin of the frame/iframe. Yes
name Sets or returns the name of the frame/iframe. Yes
noResize Sets or returns whether the frame can be resized. Yes
scrolling Sets or returns whether the frame should have scrollbars. Yes
src Sets or returns the URL of the document to be loaded into the frame. Yes
width Sets or returns the width of the iframe. Yes

Frame/IFrame Object Events

Event Description W3C
onload Script to be run as soon as the frame is loaded. Yes

Standard Properties and Events

The Frame/IFrame object also supports standard properties and events.

❮ Event Onselect Prop Style Maxwidth ❯