Name

FRAME — NN n/a IE 4 DOM 1

Synopsis

The FRAME object reflects the FRAME element, which can only be generated inside a FRAMESET element. While Navigator knows about frames as objects, it treats a frame precisely like a window object. Internet Explorer 3 and later also observe this behavior. Therefore, for cross-platform access to frame properties and methods, see the window object listing in this chapter. But if you need access to the properties listed in this section, you must access the FRAME object via its frame ID (not name). Be aware that references to frame objects shown in this section may not work properly in the Windows 95 version of Internet Explorer 4. Also, the windowRef placeholder may be filled with parent or top if the reference is in a script contained by a child frame.

HTML Equivalent

<FRAME>

Object Model Reference

IE

[ windowRef .]document.all.frameID

Properties

borderColor

frameBorder

language

parentElement

src

className

height

marginHeight

parentTextEdit

style

dataFld

id

marginWidth

sourceIndex

tagName

dataSrc

isTextEdit

name

scrolling

title

document

lang

noResize

  

Methods

contains( )

removeAttribute( )

setAttribute( )

getAttribute( )

  

Collections/Arrays

all[]

children[]

 

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.