Javascript Reference
Categories: BGSOUND

javascript BGSOUND volume

@March 15, 2008, 1:22 a.m.
volumeFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

Read/Write  

Specifies how loud the background sound plays relative to the maximum sound output level as adjusted by user preferences in the client computer. Maximum volumea setting of zerois only as loud as the user has set the Sound control panel. Attribute adjustments are negative values as low as -10,000 (although most users lose the sound at values much higher than that value).

 
Example
 
var currVolume = document.getElementById("themeSong").volume;
 
Value

Integer.

 
Default

Varies with operating system and sound settings.


Powered by Linode.