Name

EMBED — NN 3 IE 4 DOM n/a

Synopsis

The EMBED object reflects the EMBED element. This object is treated differently in Navigator and Internet Explorer. In Navigator, the object exposes the properties and methods of the plugin that plays the media loaded into the EMBED element. As a result, the precise set of properties and methods varies with the plugin being used for the multimedia content (and is not shown in the lists below). Access to the object is via the element’s name. IE, on the other hand, is more straightforward in its treatment of the object as just another element with its unique set of properties and methods (listed below). This means, however, that IE cannot control the plugin through scripting as Navigator can.

HTML Equivalent

<EMBED>

Object Model Reference

NN

[window.]document. elementName

IE

[window.]document.all. elementID

[window.]document.embeds(i)

Properties

accessKey

hidden

name

outerText

src

className

id

offsetHeight

palette

style

clientHeight

innerHTML

offsetLeft

parentElement

tabIndex

clientLeft

innerText

offsetParent

parentTextEdit

tagName

clientTop

isTextEdit

offsetTop

pluginspage

title

clientWidth

lang

offsetWidth

readyState

units

document

language

outerHTML

sourceIndex

 

Methods

blur( )

getAttribute( )

removeAttribute( )

click( )

insertAdjacentHTML( )

scrollIntoView( )

contains( )

insertAdjacentText( )

setAttribute( )

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.