Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Video load() method

Video load() method

Video Object Reference The Video object

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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

Video Object Reference The Video object