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 »

Description

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
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.