Video load() method
Example
Change the video source and reload the video:
document.getElementById("mp4_src").src = "movie.mp4";
document.getElementById("ogg_src").src = "movie.ogg";
document.getElementById("myVideo").load();
Try it »
Definition and Usage
The load() method reloads the audio/video element.
The load() method is used to update the audio/video element after changing the source or other settings.
Browser support





The load() method is supported by Internet Explorer 9+, Firefox, Opera, Chrome, and Safari 6.
Note: Internet Explorer 8 and earlier IE versions do not support the load() method.
Syntax
videoObject
.load()
Parameters
| None |
|---|
Return Value
| No return value |
|---|
The Video object