DOM Objects
DOM Anchor
DOM Applet
DOM Area
DOM Base
DOM Basefont
DOM Body
DOM Button
DOM Checkbox
DOM Document
DOM Event
DOM FileUpload
DOM Form
DOM Frame
DOM Frameset
DOM Hidden
DOM History
DOM Iframe
DOM Image
DOM Link
DOM Location
DOM Meta
DOM Navigator
DOM Option
DOM Password
DOM Radio
DOM Reset
DOM Screen
DOM Select
DOM Style
DOM Submit
DOM Table
DOM TableData
DOM TableHeader
DOM TableRow
DOM Text
DOM Textarea
DOM Window

Frame Object

The Frame object represents an HTML frame.

The Frame object's properties, methods, and events are described below:

N: Netscape (including Mozilla when N6 or higher), IE: Internet Explorer, W3C: World Wide Web Consortium (Internet Standard)

Properties

Syntax: object.property_name

Property Description N IE  W3C
contentDocument Returns the document the frame contains   - Yes
frameBorder Sets or returns whether to display a border for the frame 6 5 Yes
id Sets or returns the id of the frame (In IE 4 this property is read-only)   4 No
longDesc Sets or returns a URL to a long description of the frame   6 Yes
marginHeight Sets or returns the top and bottom margins of the frame 6 5 Yes
marginWidth Sets or returns the left and right margins of the frame 6 5 Yes
name Sets or returns the name of the frame 6 5 Yes
noResize Sets or returns whether the frame can be resized 6 5 Yes
scrolling Sets or returns whether the frame can be scrolled 6 5 Yes
src Sets or returns the URL to be loaded by the frame 6 5 Yes

Methods

Syntax: object.method_name()

Method Description N IE W3C
blur() Removes focus from the frame   5 No
focus() Gives focus to the frame   5 No

Events

Syntax: object.event_name="someJavaScriptCode"

Event Description N IE W3C
onBlur Executes some code when the frame loses focus   5 No 
onFocus Executes some code when the frame gets focus   5 No