javascript LINK media
@March 15, 2008, 1:22 a.m.
media | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 |
Read/Write | |
Specifies 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 | |
if (document.getElementById("link3").media == "print") { // process for print output } |
|
Value | |
Any one of the following constant values as a string: all | print | screen. |
|
Default | |
Permanent URL:
http://javascript.gakaa.com/link-media.aspx
Powered by Linode.