Name

media — NN n/a IE 4 DOM 1

Synopsis

Read/Write

The intended output device for the content of the destination document pointed to by the HREF attribute. 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. This property is not available in IE 4/Macintosh.

Example

document.all.link3.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.