Prop Audio Src
# Audio src Property
[ Audio Object](#)
## Example
Get the URL of the audio file:
var x = document.getElementById("myAudio").src;
_x_ output:
http://www.w3cschool.cc/try/demo_source/horse.ogg
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The src property sets or returns the current source of the audio.
The src property specifies the location (URL) of the audio file.
* * *
## Browser Support

The src property is supported by all major browsers.
**Note:** Internet Explorer 8 and earlier do not support the
YouTip