From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/web/api/stylesheet/href/index.html | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 files/es/web/api/stylesheet/href/index.html (limited to 'files/es/web/api/stylesheet/href') diff --git a/files/es/web/api/stylesheet/href/index.html b/files/es/web/api/stylesheet/href/index.html new file mode 100644 index 0000000000..0f4a42dd0c --- /dev/null +++ b/files/es/web/api/stylesheet/href/index.html @@ -0,0 +1,38 @@ +--- +title: stylesheet.href +slug: Web/API/StyleSheet/href +translation_of: Web/API/StyleSheet/href +--- +

{{ ApiRef() }}

+

Resumen

+

Devuelve la localización de la hoja de estilo.

+

Sintaxis

+
uri = stylesheet.href
+
+

Parámetros

+ +

Ejemplo

+
 // en una máquina local:
+ <html>
+  <head>
+   <link rel="StyleSheet" href="example.css" type="text/css" />
+   <script>
+    function sref() {
+     alert(document.styleSheets[0].href);
+    }
+   </script>
+  </head>
+  <body>
+   <div class="thunder">Thunder</div>
+   <button onclick="sref()">ss</button>
+  </body>
+ </html>
+// returns "file:////C:/Windows/Desktop/example.css
+
+

Notas

+

Si la hoja de estilo es un enlace, el valor de este atributo es su localización. Para las hojas de estilo in-line, el valor del atributo es NULL.

+

 

+

Specification

+

href

-- cgit v1.2.3-54-g00ecf