YouTip LogoYouTip

Prop Audio Src

# Audio src Property [![Image 8: Audio Object Reference](#) 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 ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The src property is supported by all major browsers. **Note:** Internet Explorer 8 and earlier do not support the
← Prop Audio TexttracksProp Audio Seeking β†’