matchMedia

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



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


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

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]