mozilla

Revision 189262 of StyleSheet.media

  • Revision slug: DOM/stylesheet/media
  • Revision title: media
  • Revision id: 189262
  • Created:
  • Creator: Dria
  • Is current revision? No
  • Comment
Tags: 

Revision Content

{{template.DomRef()}}

Summary

media specifies the intended destination medium for style information.

Syntax

medium = stylesheet.media 
stylesheet.media = medium

Parameters

  • medium is a string describing a single medium or a comma-separated list.

Example

<link rel="StyleSheet" href="document.css" type="text/css" media="screen" />

Notes

The default value for media is "screen."

Specification

DOM Level 2 Styles - STYLESHEET

Revision Source

<p>
{{template.DomRef()}}
</p>
<h3 name="Summary">Summary</h3>
<p><b>media</b> specifies the intended destination medium for style information. 
</p>
<h3 name="Syntax">Syntax </h3>
<pre class="eval"><i>medium</i> = stylesheet.media 
stylesheet.media = <i>medium</i>
</pre>
<h3 name="Parameters">Parameters </h3>
<ul><li><code>medium</code> is a string describing a single medium or a comma-separated list.
</li></ul>
<h3 name="Example">Example </h3>
<pre>&lt;link rel="StyleSheet" href="document.css" type="text/css" media="screen" /&gt;
</pre>
<h3 name="Notes">Notes </h3>
<p>The default value for media is "screen." 
</p>
<h3 name="Specification">Specification </h3>
<p>DOM Level 2 Styles - STYLESHEET
</p>
Revert to this revision