HTML DOM Frame and IFrame Objects

## JavaScript Reference

Overview

## JavaScript Objects

JS Array JS Boolean JS Date JS Math JS Number JS String JS RegExp JS Global

## Browser Objects

Window Navigator Screen History Location

## HTML DOM Objects

DOM Document DOM Elements DOM Attributes DOM Events

## HTML Objects

DOM Anchor DOM Area DOM Base DOM Body DOM Button DOM Form DOM Frame/IFrame DOM Frameset DOM Image DOM Input Button DOM Input Checkbox DOM Input File DOM Input Hidden DOM Input Password DOM Input Radio DOM Input Reset DOM Input Submit DOM Input Text DOM Link DOM Meta DOM Object DOM Option DOM Select DOM Style DOM Table DOM td / th DOM tr DOM Textarea

# HTML DOM Frame and IFrame Objects

« Previous
Next Reference »

## Frame Object

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.

## IFrame Object

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.

## Frame/IFrame Object Properties

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

## Frame/IFrame Object Events

Event | Description | W3C
--- | --- | ---
onload | Script to be run immediately after a frame/iframe is loaded | Yes

## Standard Properties and Events

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

« Previous
Next Reference »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE