media property

Gets or sets the intended media type of the media source.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.8Internet Explorer 9

 

Syntax

JavaScript

mediatype = object.media

 

Property values

Type: string

A string that specifies the intended media type.

Standards information

Remarks

The media property can be used to download different video formats for different sized screens. If the media attribute is omitted, the default value is "all", which means that the media resource is suitable for all media.

See also

source

 

 

Show:
© 2014 Microsoft