Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

setAttributeNS method

Sets the value of the specified attribute within the specified namespace.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4Internet Explorer 9

Syntax


HRESULT retVal = object.setAttributeNS(pvarNS, bstrAttributeName, pvarAttributeValue);

Parameters

pvarNS [in]

Type: VARIANT

The namespace URI that defines the desired attribute or a NULL value.

bstrAttributeName [in]

Type: BSTR

The name of the desired attribute within the specified namespace.

pvarAttributeValue [in]

Type: VARIANT

The string, number, or Boolean value to assign to the attribute.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The operation completed successfully.

 

Standards information

See also

a
abbr
acronym
address
applet
area
article
aside
audio
b
base
baseFont
bdo
bgSound
big
blockQuote
body
br
button
canvas
caption
center
cite
code
col
colGroup
comment
custom
dd
del
dfn
dir
div
dl
dt
em
embed
fieldSet
figcaption
figure
font
footer
form
frame
frameSet
head
header
hgroup
hn
hr
html
i
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=hidden
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
ins
isIndex
kbd
label
legend
li
link
listing
map
mark
marquee
media
menu
meta
nav
nextID
noBR
noFrames
noScript
object
ol
optGroup
option
p
param
plainText
pre
q
rt
ruby
s
samp
script
section
select
small
source
span
strike
strong
style
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
title
tr
tt
u
ul
var
video
wbr
xmp
setAttribute

 

 

Show:
© 2014 Microsoft. All rights reserved.