Audio load() Method
Example
Change the audio source and re-load the audio:
document.getElementById("mp4_src").src = "movie.mp4";
document.getElementById("ogg_src").src = "movie.ogg";
document.getElementById("myAudio").load();
Try it Yourself »
Definition and Usage
The load() method re-loads the audio element.
The load() method is used to update the audio element after changing the source or other settings.
Browser Support
| Method | |||||
|---|---|---|---|---|---|
| load() | Yes | 9.0 | Yes | 6.0 | Yes |
Syntax
audioObject.load()
Parameters
| None |
Return Value
| No return value |
❮ Audio Object

