Latest web development tutorials

HTML Audio / Video DOM load () method

HTML audio / video Tag Reference HTML Audio / Video DOM Reference

Examples

Change the video source, and reload the video:

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

try it"

Definition and Usage

load () method reloads the audio / video (audio / video) elements.

load () method is used after changing the source or other settings for audio / video (audio / video) elements to be updated.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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

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


grammar

audio|video .load()


HTML audio / video Tag Reference HTML Audio / Video DOM Reference