Latest web development tutorials
 

Video load() Method

< 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

Method
load() Yes 9.0 Yes 6.0 Yes

Syntax

videoObject.load()

Parameters

None

Return Value

No return value

< Video Object