aspxtreme

MEDIA Attribute | media Property

HTML Elements/DHTML Objects   Element Attributes


Sets or retrieves the destination media for the style information.

Syntax


HTML <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



Books and more ...

Contents
HTML Elements / DOM Objects
HTML Element Attributes
CSS Attributes
DOM Object Properties
DOM-compliant Events Reference
DOM Methods Reference
DOM Collections Reference
 


Suggested Reading



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

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

You can help support aspxtreme