Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

matches property

Returns TRUE if the list of media queries matches the state of the current window, or FALSE otherwise.

This property is read-only.

Internet Explorer 10

 

Syntax

JavaScript
ptr = object.matches

 

Property values

Type: boolean

State of the current window.

ValueCondition
True

The list of media queries matches the state of the current window.

False

The list of media queries doesn't match the state of the current window.

 

Standards information

See also

MediaQueryList

 

 

Show:
© 2015 Microsoft