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:
© 2014 Microsoft