From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/element/setattributens/index.html | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 files/ja/web/api/element/setattributens/index.html (limited to 'files/ja/web/api/element/setattributens/index.html') diff --git a/files/ja/web/api/element/setattributens/index.html b/files/ja/web/api/element/setattributens/index.html new file mode 100644 index 0000000000..2a056c29b9 --- /dev/null +++ b/files/ja/web/api/element/setattributens/index.html @@ -0,0 +1,39 @@ +--- +title: element.setAttributeNS +slug: Web/API/Element/setAttributeNS +tags: + - DOM + - Gecko + - 翻訳中 +translation_of: Web/API/Element/setAttributeNS +--- +

{{ ApiRef() }}

+ +

概要

+ +

setAttributeNS は指定の名前空間と名前で新しい属性を追加したり、属性の値を変更します。

+ +

構文

+ +
element.setAttributeNS(namespace,name,value)
+
+ + + +

+ +
var d = document.getElementById("d1");
+d.setAttributeNS("http://www.mozilla.org/ns/specialspace", "align", "center");
+
+ +

Notes

+ +

{{ DOMAttributeMethods() }}

+ +

仕様

+ +

DOM Level 2 Core: setAttributeNS

-- cgit v1.2.3-54-g00ecf