asp.net.ph

Skip Navigation Links

MEDIA Attribute | media Property

Language References


Sets or retrieves the destination media for the style information.

Syntax


Inline <element MEDIA = 'screen' | 'print' | 'all'...>
Script object.media = sMedia ]

Possible Values


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.

Remarks

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.

Applies To

LINK, STYLE, styleSheet



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note