Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
You are here: Reference > HTML > tags > bgSound

bgSound element

Browser support:
Associates a background sound with a page.
The bgSound tag allows inserting a sound into the HTML document in Internet Explorer.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: bgSound.

Possible members:

Attributes
Events
Styles
balance
Specifies how the volume will be divided between the left and right speakers.
id
Sets a unique identifier for the object.
loop
Specifies the number of repeats for a sound or video clip.
name
Sets the name of an element.
src
Sets the URL of a sound file to be played.
volume
Specifies the volume for the background sound.

Example HTML code 1:

This example illustrates the use of the bgSound element:
<bgsound src="bell.wav" loop="-1">
Did you find this example helpful? yes no

Example HTML code 2:

Use the object tag for a cross-browser and standardized solution:
<object data="bell.wav" type="audio/x-wav" autostart="true" width="100px" height="20px"></object>
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content