Name

BGSOUND — NN n/a IE 4 DOM n/a

Synopsis

A BGSOUND element defines a sound file that is to play in the background while the user visits the page. Set properties to control the volume and how many times the sound track plays even after the sound file has loaded. A few properties, such as innerHTML and innerText, are exposed in the Windows version, but they don’t apply to an element that does not have an end tag.

HTML Equivalent

<BGSOUND>

Object Model Reference

IE

[window.]document.all. elementID

Properties

balance

loop

offsetTop

parentElement

style

className

offsetHeight

offsetWidth

parentTextEdit

tagName

document

offsetLeft

outerHTML

sourceIndex

title

id

offsetParent

outerText

src

volume

isTextEdit

    

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.