This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

type

Summary

Gets the media type of the object that displays the Document object

Property of css/media_queries/apis/StyleMediacss/media_queries/apis/StyleMedia

Syntax

Note: This property is read-only.

var mediaType = window.styleMedia.type;

Return Value

Returns an object of type StringString

The media type of the current document.

See also

Related articles

Media Queries

Related pages

Attributions