createCSSStyleSheet
(method
)
Owning interface and usage:
DOMImplementationCSS.
createCSSStyleSheet(
title,
media)
Member of these other interfaces:
none
Description:
Creates a new CSSStyleSheet.
Parameters:
| DOMString title |
- |
The advisory title. See also the section.
|
| DOMString media |
- |
The comma-separated list of media associated with the new style sheet. See also the section.
|
Returns:
CSSStyleSheet -
A new CSS style sheet.
Exceptions:
- DOMException SYNTAX_ERR
-
Raised if the specified media string value has a syntax error and is unparsable.