Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Audio paused attribute

Audio paused attribute

Audio Object Reference Audio object

Example

Check whether the audio is paused:

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

x Output value:

true

Try it »


Definition and Usage

The paused attribute returns whether the audio is paused.

Note: This property is read-only.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the paused attribute.

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


Syntax

audioObject

.paused

Technical Details

Return Value: Boolean. Returns true if the audio is paused, otherwise false.

Audio Object Reference Audio object