Indicates whether the document currently matches a media query.
Method of css/media_queries/apis/StyleMediacss/media_queries/apis/StyleMedia
Syntaxvar matchesMedia = window.styleMedia.matchMedium(/* see parameter list */);
Parameters mediaQuery
The media query to match.
Return ValueReturns an object of type BooleanBoolean
Boolean
Returns whether the media type of the document matches the media type that the mediaQuery parameter specifies.
NotesThe 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 CSSOMmatchMedium
matchMedium
<b/>
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4