Readonly
matchesThe matches
read-only property of the true
if the document currently matches the media query list, or false
if not.
Readonly
mediaThe media
read-only property of the serialized media query.
The addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe deprecated addListener()
method of the MediaQueryListener
that will run a custom callback function in response to the media query status changing.
The dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe removeListener()
method of the MediaQueryListener
.
A
MediaQueryList
object stores information on a media query applied to a document, with support for both immediate and event-driven matching against the state of the document.MDN Reference