matchMedia

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

matchMedia

This article is In Progress.



Needs Summary: This article does not have a summary. Summaries give a brief overview of the topic and are automatically included on some listing pages that link to this article.

Method of css/media_queries

Syntax

var object = object.matchMedia();


Return Value

Returns an object of type DOM Node.

Type: HRESULT

This method can return one of these values.

S_OK




Compatibility

There is no data available for topic "webapi", feature "matchMedia". If you think that there should be data available, consider opening an issue.

Needs Examples: This section should include examples.

Notes

Remarks

The following example creates a media query that checks whether the width or height of a window is less than a certain size.

Syntax

Standards information


Parameters

mediaQuery [in]
Type: DOMString
retVal [out, retval]
Type: MediaQueryList


See also

Related articles

Media Queries









  • matchMedia
















Related pages (MSDN)

  • Window

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]