matchMedia
< css | media queries | apis
This page has been flagged with the following issues:
High-level issues:
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
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
- CSSOM View Module, Section 4
Parameters
- mediaQuery [in]
- Type: DOMString
- retVal [out, retval]
- Type: MediaQueryList
See also
Related articles
Media Queries
- css/media queries/apis/matchMedia
Related pages (MSDN)
Window
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here