Audio pausedProperties

Audio 对象参考手册Audio Object

Example

Check whether the audio is paused:

var x = document.getElementById("myAudio").paused;

xThe output value is:

true

Try it yourself »

Definition and Usage

The paused property returns whether the audio is paused.

Note:This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the paused property.

Note:Internet Explorer 8 and earlier IE versions do not support this property.


Syntax

audioObject.paused

Technical Details

Return value: A Boolean value. Returns true if the audio is paused; otherwise, returns false.


Audio 对象参考手册Audio Object Other Extensions