appendMedium method (mediaList)
Adds a media type to the mediaList collection.
Note: The mediaList object and its appendMedium method are supported in Internet Explorer from version 9.Media types are the target devices for style properties.
Media types can be specified for the @import and media at-rules in CSS, or by the media property for the style and link elements.
You can find the related objects in the Supported by objects section below.
String that specifies the type of the media to add.
One of the following values:
This method has no return value.
Example HTML code 1:
This example illustrates the use of the appendMedium method.
Did you find this example helpful?
User Contributed Comments