blob: b1f3d9c1e323230d03f548e38054f447df040ae1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
---
title: StyleSheet.ownerNode
slug: Web/API/StyleSheet/ownerNode
translation_of: Web/API/StyleSheet/ownerNode
---
<div><font><font>{{APIRef ("CSSOM")}}</font></font></div>
<h2 id="Summary" name="Summary"><font><font>Résumé</font></font></h2>
<p><strong><font><font>OwnerNode</font></font></strong><font><font> renvoie le noeud qui associe cette feuille de style au document.</font></font></p>
<h2 id="Syntax" name="Syntax"><font><font>Syntaxe</font></font></h2>
<pre class="eval"><em><font><font>ObjRef</font></font></em><font><font> = stylesheet.ownerNode
</font></font></pre>
<h2 id="Example" name="Example"><font><font>Exemple</font></font></h2>
<pre class="eval"><font><font><Html></font></font><font><font>
<Tête></font></font><font><font>
<Link rel = "StyleSheet" href = "example.css" type = "text / css" /></font></font><font><font>
<Script></font></font><font><font>
Function stilo () {</font></font><font><font>
Alerte (document.styleSheets [0] .ownerNode);</font></font><font><font>
}</font></font><font><font>
</ Script> </font></font><font><font>
</ Head></font></font><font><font>
<Body></font></font><font><font>
<Button onclick = "stilo ()"> ss </ button></font></font><font><font>
</ Body></font></font><font><font>
</ Html></font></font><font><font>
// affiche "objet HTMLLinkElement"</font></font>
</pre>
<h2 id="Notes" name="Notes"><font><font>Remarques</font></font></h2>
<p><font><font>Pour HTML, </font></font><strong><font><font>ownerNode</font></font></strong><font><font> peut être l' </font><font>élément </font></font><a href="en/LINK"><font><font>LINK</font></font></a><font><font> ou </font></font><a href="en/STYLE"><font><font>STYLE</font></font></a><font><font> correspondant </font><font>. </font><font>Pour XML, il peut s'agir des instructions de traitement de liaison. </font><font>Pour les feuilles de style qui sont incluses dans d'autres feuilles de style, la valeur de cet attribut est NULL.</font></font></p>
<h2 id="Specification" name="Specification"><font><font>spécification</font></font></h2>
<p><font><font>DOM Styles de niveau 2 - FEUILLE DE STYLES</font></font></p>
|