The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.


< css‎ | media queries‎ | apis
Jump to: navigation, search


This article is In Progress.


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

Property of css/media_queries/apis/StyleMedia


Note: This property is read-only.

var mediaType = window.styleMedia.type;

Return Value

Returns an object of type String

The media type of the current document.

Needs Examples: This section should include examples.

See also

Related articles

Media Queries

  • type

Related pages (MSDN)


This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]