aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/api/selection/selectallchildren
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:41:45 -0500
commit1109132f09d75da9a28b649c7677bb6ce07c40c0 (patch)
tree0dd8b084480983cf9f9680e8aedb92782a921b13 /files/es/web/api/selection/selectallchildren
parent4b1a9203c547c019fc5398082ae19a3f3d4c3efe (diff)
downloadtranslated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.gz
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.tar.bz2
translated-content-1109132f09d75da9a28b649c7677bb6ce07c40c0.zip
initial commit
Diffstat (limited to 'files/es/web/api/selection/selectallchildren')
-rw-r--r--files/es/web/api/selection/selectallchildren/index.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/files/es/web/api/selection/selectallchildren/index.html b/files/es/web/api/selection/selectallchildren/index.html
new file mode 100644
index 0000000000..5f824dc200
--- /dev/null
+++ b/files/es/web/api/selection/selectallchildren/index.html
@@ -0,0 +1,45 @@
+---
+title: selectAllChildren
+slug: Web/API/Selection/selectAllChildren
+tags:
+ - páginas_a_traducir
+translation_of: Web/API/Selection/selectAllChildren
+---
+<p>{{ ApiRef("DOM") }}</p>
+
+<h3 id="Resumen" name="Resumen">Resumen</h3>
+
+<p>Añadirá todos los "hijos" del nodo especificado a la selección. La selección previa se pierde.</p>
+
+<h3 id="Sintaxis" name="Sintaxis">Sintaxis</h3>
+
+<pre class="eval"><i>sel</i>.selectAllChildren(
+<i>parentNode</i>)
+</pre>
+
+<h3 id="Par.C3.A1metros" name="Par.C3.A1metros">Parámetros</h3>
+
+<dl>
+ <dt>
+ <i><code>parentNode</code></i>
+ </dt>
+ <dd>Todos los "hijos" de
+ <i><code>parentNode</code></i>
+ serán seleccionados. El mismo
+
+ <i><code>parentNode</code></i>
+ no es parte de la selección.</dd>
+</dl>
+
+<h3 id="Ejemplos" name="Ejemplos">Ejemplos</h3>
+
+<pre class="eval">footer = document.getElementById("footer");
+window.getSelection().selectAllChildren(footer);
+/* Todo el contendio del pie de página ahora está seleccionado */
+</pre>
+
+<p> </p>
+
+<div class="noinclude"> </div>
+
+<p>{{ languages( { "en": "en/DOM/Selection/selectAllChildren", "it": "it/DOM/Selection/selectAllChildren", "pl": "pl/DOM/Selection/selectAllChildren" } ) }}</p>