IMediaList.MediaText property

A stringifier that returns a DOMString representing the MediaList as text, and also allows you to set a new MediaList.

public string MediaText { get; }

Property Value

The parsable textual representation of the media list. This is a comma-separated list of media.


exception condition
DOMException SYNTAX_ERR: Raised if the specified string value has a syntax error and is unparsable.NO_MODIFICATION_ALLOWED_ERR: Raised if this media list is readonly.

See Also