DOM:stylesheet.ownerNode
z Mozilla Developer Center, polskiego centrum programistów Mozilli.
UWAGA: Tłumaczenie tej strony nie zostało zakończone.
Może być ona niekompletna lub wymagać korekty.
Chcesz pomóc? | Dokończ tłumaczenie | Sprawdź ortografię | Więcej takich stron...
Spis treści |
[edytuj] Podsumowanie
ownerNode returns the node that associates this style sheet with the document.
[edytuj] Składnia
objRef = stylesheet.ownerNode
[edytuj] Przykład
<html>
<head>
<link rel="StyleSheet" href="example.css" type="text/css" />
<script>
function stilo() {
alert(document.styleSheets[0].ownerNode);
}
</script>
</head>
<body>
Thunder
<button onclick="stilo()">ss</button> </body> </html> // displays "object HTMLLinkElement"
[edytuj] Notatki
For HTML, ownerNode may be the corresponding LINK or STYLE element. For XML, it may be the linking processing instruction. For style sheets that are included by other style sheets, the value of this attribute is NULL.
[edytuj] Specyfikacja
DOM Level 2 Styles - STYLESHEET