November 2001
Intermediate to advanced
936 pages
68h 43m
English
MediaList.appendMedium( ) — add a new media type to the list
DOM Level 2 StyleSheets
void appendMedium(String newMedium)
throws DOMException;newMedium
The name of the new media type to append. See the MediaList reference page for the set of valid media type names.
This method may throw a DOMException with a code
of NO_MODIFICATION_ALLOWED_ERR if the media list
is read-only, or INVALID_CHARACTER_ERR if the
specified newMedium argument contains
illegal characters.
This method appends the specified
newMedium to the end of the MediaList. If
the MediaList already contains the specified media type, it is first
removed from its current position and then appended at the end of the
list.