Name

media — NN n/a IE 4 DOM 1

Synopsis

Read/Write

The intended output device for the rules of the STYLE element. The media property looks forward to the day when browsers are able to tailor content to specific kinds of devices such as pocket computers, text-to-speech digitizers, or fuzzy television sets.

Example

document.all.myStyle.media = "print"

Value

Any one of the following constant values as a string: all | print | screen.

Default

all

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.