HTML Audio/Video DOMload()Methods

HTML Audio/Video DOM Reference Manual

Example

Change the video source and reload the video:

document.getElementById("mp4_src").src="movie.mp4.html";
document.getElementById("ogg_src").src="movie.ogg.html";
document.getElementById("video1").load();

Try it Yourself »

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 9+, Firefox, Opera, Chrome and Safari 6 support the load() method.

Note:Internet Explorer 8 and earlier versions do not support the load() method.


Syntax

audio|video.load()


HTML Audio/Video DOM Reference Manualother extensions