HTMLVideoElement : HTMLElement
Return to: HTML DOM Level 5 index

Represents an element used for playing videos or movies.

Platform Support

Mozilla Chrome Safari Opera IE Netscape
3.5+ no 4.0.5+ 10.5+ 9.0+ no

Constructors

Constructor Action Mozilla Chrome Safari Opera IE Netscape
HTMLVideoElement Constructor() : HTMLVideoElement
Creates an instance of the HTMLVideoElement.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no

HTMLVideoElement() : HTMLVideoElement

Creates an instance of the HTMLVideoElement.

Returns
HTMLVideoElement

Visibility
internal

Properties

Property Action Mozilla Chrome Safari Opera IE Netscape
width : String
Determines the width of the video element.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

height : String
Determines the height of the video element.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

videoWidth : Number
Returns the intrinsic width of the video in CSS pixels.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

videoHeight : Number
Returns the intrinsic height of the video in CSS pixels.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

poster : String
Gives the address of an image file that the user agent can show while no video data is available.
Show Details 3.5+ no 4.0.5+ 10.5+ 9.0+ no
Availability

WhatWG

Inherited Functions

Method Action Mozilla Chrome Safari Opera IE Netscape
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the Element nodes with the specified classNames.
Show Details 1.9+ 5.0+ 3.1+ 9.51+ no no

Parameters
String classNames (one-or-more)A string representing the class name(s) of the elements to return. Multiple class names should be separated by spaces.

Returns
NodeList

Using getElementsByClassName

                        	                    document.getElementById("useCases").getElementsByClassName("question");

Would return a NodeList of all elements inside the element with the id "useCases" to which the class "question" applies.

                        	                    document.getElementById("useCases").getElementsByClassName("question issue");

Would return a NodeList of all elements inside the element with the id "useCases" to which both the classes "question" and "issue" apply.

Remarks

Returns a list of child elements to which the specified className applies. The returned NodeList is sorted in tree order (the order the elements were found during a depth-first preorder traversal through the node tree).

See Also

Document.getElementsByClassName|Element.getElementsByClassName|HTMLDocument.getElementsByClassName

Availability

HTML 5|W3C|W3C

References

HTMLVideoElement

Availability

JavaScript 1.2|WhatWG

text_javascript aptana_docs