diff options
Diffstat (limited to 'files/pl/web/api/element/haschildnodes/index.html')
| -rw-r--r-- | files/pl/web/api/element/haschildnodes/index.html | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/files/pl/web/api/element/haschildnodes/index.html b/files/pl/web/api/element/haschildnodes/index.html deleted file mode 100644 index e21f22dedf..0000000000 --- a/files/pl/web/api/element/haschildnodes/index.html +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: element.hasChildNodes -slug: Web/API/Element/hasChildNodes -tags: - - DOM - - Dokumentacja_Gecko_DOM - - Gecko - - Wszystkie_kategorie -translation_of: Web/API/Node/hasChildNodes ---- -<p>{{ ApiRef() }}</p> -<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3> -<p><b>hasChildNodes</b> zwraca wartość logiczną określającą, czy element posiada dzieci czy nie.</p> -<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3> -<pre class="eval">[ true | false ] = element.hasChildNodes() -</pre> -<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3> -<pre>t1 = document.getElementById("table-data"); -if ( t1.hasChildNodes() ) { - // tabela ma dzieci } -</pre> -<h3 id="Uwagi" name="Uwagi">Uwagi</h3> -<p>Zauważ, że składnia <code>element.hasChildNodes</code> - bez nawiasów <code>()</code> - jest nieprawidłowa. Takie użycie zawsze zwraca <code>true</code>, oznaczające, że metoda o tej nazwie jest dostępna w obiekcie. Nie daj się nabrać.</p> -<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3> -<p><a class="external" href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-810594187">hasChildNodes </a></p> -<div class="noinclude"> - </div> -<p>{{ languages( { "en": "en/DOM/element.hasChildNodes", "fr": "fr/DOM/element.hasChildNodes", "ja": "ja/DOM/element.hasChildNodes" } ) }}</p> |
