HTML DOM Video poster property
Examples
Modify the current video data is invalid display pictures:
. Document.getElementById ( "myVideo") poster = "../images/w3cschoolcomlogo.png";
try it"
Definition and Usage
poster poster property sets or returns the property value of the video.
poster describes the property when the video is loaded or when a user clicks the play button before the picture displayed. If this attribute is not included, the first frame of the video display will be used instead.
Browser Support
All major browsers support the poster property.
Note: Internet Explorer 8 and earlier versions of IE do not support the <video> element.
grammar
Returns poster properties:
videoObject .poster
Setting poster properties:
videoObject .poster = URL
Property Value
value | description |
---|---|
URL | It describes the URL address of the image file. Possible values:
|
technical details
return value: | String representing the preview image URL address. Back entity URL, including the protocol (http: //) |
---|
More examples
Examples
Get a preview of the URL address:
var x = document.getElementById ( "myVideo") poster.;
x The output is: http://www.w3cschool.cc/jsref/w3javascript.gif
try it"
Related Pages
HTML Reference Manual: HTML <Video> Poster Properties
Video Object