media property
Gets or sets the intended media type of the media source.
Syntax
object.put_media(string
mediatype);object.get_media(string
* mediatype);
Property values
Type: string
A string that specifies the intended media type.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.8
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.