media property
Returns the serialized version of the media query list that was used to create the MediaQueryList (MQL) object.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.media |
Property values
Type: DOMString
A string representing the MediaQueryList.
Standards information
- CSSOM View Module, Section 4.1
See also
Show:
