matchMedia
Method of css/media_queriescss/media_queries
Syntax
var object = object.matchMedia();
Return Value
Returns an object of type DOM NodeDOM Node
Type: HRESULT
This method can return one of these values.
S_OK
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
matchMedia
Related pages
Window
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]