Easy Tutorial
❮ Prop Doc Readystate Prop Htmlcollection Length ❯

Audio currentSrc Property

Audio Object

Example

Get the URL of the current audio:


Definition and Usage

The currentSrc property returns the URL of the current audio.

If no audio is set, it returns an empty string.

Note: This property is read-only.

Tip: Use the src property to set the URL of the audio file.


Browser Support

All major browsers support the currentSrc property.

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


Syntax

Technical Details

| Return Value: | String, representing the URL of the current audio. Returns the actual URL, including the protocol (e.g., http://). Returns an empty value if no audio is set. | | --- | --- |

❮ Prop Doc Readystate Prop Htmlcollection Length ❯