Language References
Sets or retrieves the destination media for the style information.
Inline |
<element MEDIA = 'screen' | 'print' | 'all'...> |
Script |
object.media = sMedia ] |
screen |
Output is intended for computer screens. |
print |
Output is intended for printed material and for documents on screen viewed in Print Preview mode. |
all |
Applies to all devices. |
The property is read/write with no default value.
This property is used to specify the type of media the stylesheet will be used for. The media is often specified in the owningElement. If no media has been specified, the property returns empty. Modifying the media list may cause a change to the stylesheet's disabled attribute.
LINK, STYLE, styleSheet