This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

styleMedia

Summary

Gets a StyleMedia object that contains methods and properties. These methods and properties determine the media types that are supported by the object that displays the document object.

Property of dom/Windowdom/Window

Syntax

Note: This property is read-only.

var styleMedia = window.styleMedia;

Return Value

Returns an object of type DOM NodeDOM Node

Of type StyleMedia. Returns the StyleMedia instance object.

Examples

var stype=window.styleMedia.type;

See also

Related articles

CSSOM

Attributions