Readonly
lengthThe read-only length
property of the MediaList interface returns the number of media queries in the list.
The mediaText
property of the MediaList interface is a stringifier that returns a string representing the MediaList
as text, and also allows you to set a new MediaList
.
The appendMedium()
method of the MediaList interface adds a media query to the list.
The deleteMedium()
method of the MediaList interface removes from this MediaList
the given media query.
The item()
method of the MediaList interface returns the media query at the specified index
, or null
if the specified index
doesn't exist.
The
MediaList
interface represents the media queries of a stylesheet, e.g., those set using a link element'smedia
attribute.MDN Reference