Name
LinkStyle — a style sheet associated with a node
Availability
DOM Level 2 StyleSheets
Properties
-
readonly
StyleSheet
sheet
The StyleSheet object associated with this node.
Description
In DOM implementations that support the StyleSheets module, this
interface is implemented by any Document node that links to a style
sheet or defines an inline style sheet. The sheet
property then provides a way to obtain the StyleSheet object
associated with the node.
In HTML documents, the <style>
and
<link>
elements implement this interface.
Those elements are represented by the HTMLStyleElement and
HTMLLinkElement interfaces, which do not have their own entries in
this reference. See HTMLElement for more information
about those interfaces.
In XML documents, style sheets are included with a processing instruction. See ProcessingInstruction for more information.
See Also
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.