aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/element/setattributens/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pl/web/api/element/setattributens/index.html')
-rw-r--r--files/pl/web/api/element/setattributens/index.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/files/pl/web/api/element/setattributens/index.html b/files/pl/web/api/element/setattributens/index.html
new file mode 100644
index 0000000000..c721111e36
--- /dev/null
+++ b/files/pl/web/api/element/setattributens/index.html
@@ -0,0 +1,33 @@
+---
+title: element.setAttributeNS
+slug: Web/API/Element/setAttributeNS
+tags:
+ - DOM
+ - Dokumentacja_Gecko_DOM
+ - Gecko
+ - Wszystkie_kategorie
+translation_of: Web/API/Element/setAttributeNS
+---
+<p>{{ ApiRef() }}</p>
+<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
+<p><code>setAttributeNS</code> dodaje nowy lub zmienia wartość istniejącego atrybutu o podanej nazwie i przestrzeni nazw.</p>
+<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
+<pre class="eval"><i>element</i>.setAttributeNS(<i>przestrzeńNazw</i>,<i>nazwa</i>,<i>wartość</i>)
+</pre>
+<ul>
+ <li><code>przestrzeńNazw</code> to ciąg znaków określajacy przestrzeń nazw atrybutu.</li>
+ <li><code>nazwa</code> to ciąg znaków określający nazwę atrybutu do ustawienia.</li>
+ <li><code>wartość</code> to żądana wartość atrybutu.</li>
+</ul>
+<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
+<pre class="eval">var d = document.getElementById("d1");
+d.setAttributeNS("<span class="nowiki">http://www.mozilla.org/ns/specialspace</span>", "align", "center");
+</pre>
+<h3 id="Uwagi" name="Uwagi">Uwagi</h3>
+<p>{{ DOMAttributeMethods() }}</p>
+<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
+<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-ElSetAttrNS">DOM Level 2 Core: setAttributeNS</a></p>
+<p> </p>
+<div class="noinclude">
+  </div>
+<p>{{ languages( { "en": "en/DOM/element.setAttributeNS", "fr": "fr/DOM/element.setAttributeNS", "ja": "ja/DOM/element.setAttributeNS" } ) }}</p>