THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Video load() Method

Video Object Reference Video Object

Example

Change the video source and re-load the video:

document.getElementById("mp4_src").src = "movie.mp4";
document.getElementById("ogg_src").src = "movie.ogg";
document.getElementById("myVideo").load();
Try it yourself »

Definition and Usage

The load() method re-loads the video element.

The load() method is used to update the video element after changing the source or other settings.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The load() method is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and Safari 6.

Note: The load() method is not supported in Internet Explorer 8 and earlier versions.


Syntax

videoObject.load()

Parameters

None

Return Value

No return value

Video Object Reference Video Object