matchMedium

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

matchMedium

This article is In Progress.


Summary

Indicates whether the document currently matches a media query.

Method of css/media_queries/apis/StyleMedia

Syntax

var matchesMedia = window.styleMedia.'(/* see parameter list */);

Parameters

mediaQuery

Data-type 
String


The media query to match.

Return Value

Returns an object of type Boolean.

Boolean

Returns whether the media type of the document matches the media type that the mediaQuery parameter specifies.

Needs Examples: This section should include examples.

Notes

The mediaQuery parameter can contain a string that specifies a media type, an optional well-formed Cascading Style Sheets (CSS) media query, or both. For more information on Media Queries, see Media Queries.



See also

Related articles

CSSOM


















































… further results

Media Queries

















Related pages (MSDN)

Attribution

This article contains content originally from external sources.

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