Javascript Reference
Categories: styleElement

javascript styleElement media

@March 15, 2008, 1:22 a.m.
mediaFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Indicates 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.getElementById("myStyle").media = "print";
 
Value

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

 
Default

all


Powered by Linode.