diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:41:45 -0500 |
commit | 1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch) | |
tree | 0dd8b084480983cf9f9680e8aedb92782a921b13 /files/es/web/api/stylesheet/ownernode | |
parent | 4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff) | |
download | translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2 translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip |
initial commit
Diffstat (limited to 'files/es/web/api/stylesheet/ownernode')
-rw-r--r-- | files/es/web/api/stylesheet/ownernode/index.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/files/es/web/api/stylesheet/ownernode/index.html b/files/es/web/api/stylesheet/ownernode/index.html new file mode 100644 index 0000000000..e7a14fb528 --- /dev/null +++ b/files/es/web/api/stylesheet/ownernode/index.html @@ -0,0 +1,35 @@ +--- +title: Stylesheet.ownerNode +slug: Web/API/StyleSheet/ownerNode +translation_of: Web/API/StyleSheet/ownerNode +--- +<p>{{ ApiRef() }}</p> +<h3 id="Summary" name="Summary">Resumen</h3> +<p><strong>ownerNode</strong> devuelve el nodo que asocia la hoja de estilo con el documento.</p> +<h3 id="Syntax" name="Syntax">Sintaxis</h3> +<pre class="eval"><em>objRef</em> = stylesheet.ownerNode +</pre> +<h3 id="Example" name="Example">Ejemplo</h3> +<pre class="eval"><html> + <head> + <link rel="StyleSheet" href="example.css" type="text/css" /> + <script> + function stilo() { + alert(document.styleSheets[0].ownerNode); + } + </script> + </head> + <body> +</pre> +<div class="thunder"> + Thunder</div> +<pre class="eval"> <button onclick="stilo()">ss</button> + </body> +</html> +// displays "object HTMLLinkElement" +</pre> +<h3 id="Notes" name="Notes">Notas</h3> +<p>Para el HTML, <strong>ownerNode</strong> correspondería a un elemento <a href="/es/LINK" title="es/LINK">LINK</a> o <a href="/Es/DOM/Element.style" title="es/DOM/element.style">STYLE</a>. Para XML, serían las instrucciones del proceso de enlace. Para las hojas de estilo que están incluidas en otras hojas de estilo, este valor es NULL.</p> +<h3 id="Specification" name="Specification">Especificación</h3> +<p>DOM Level 2 Styles - STYLESHEET</p> +<p>{{ languages( { "pl": "pl/DOM/stylesheet.ownerNode" } ) }}</p> |