O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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[]

 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required