YouTip LogoYouTip

Met Audio Play

# HTML DOM Audio play() Method [![Image 8: Audio Object Reference](#) Audio Object](#) ## Example An audio clip with play and pause buttons: ```javascript var x = document.getElementById("myAudio"); function playAudio() { x.play(); } function pauseAudio() { x.pause(); } [Try it Yourself Β»](#) * * * ## Definition and Usage The `play()` method starts playing the current audio. **Note:** This method is often used in combination with the [pause()](#) method. **Note:** Use the (#) attribute to display audio controls (like play, pause, seeking, volume, etc.). * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The `play()` method is supported by all major browsers. **Note:** Internet Explorer 8 or earlier does not support this method. * * * ## Syntax `audioObject.play()` ## Parameters None ## Return Value No return value * * Audio Object](#)
← Met Audio PauseMet Audio Addtexttrack β†’