Export (0) Print
Expand All

removeAttribute method

Removes the given attribute from the object.

Internet Explorer 8

Syntax


HRESULT retVal = object.removeAttribute(strAttributeName, pfSuccess);

Parameters

strAttributeName [in]

Type: BSTR

BSTR that specifies the attribute name.

pfSuccess [out, retval]
C++Pointer to a VARIANT_BOOL that specifies one of the following possible values:
JavaScriptVARIANT_BOOL. Returns one of the following possible values:

VARIANT_TRUE (true)

The attribute was successfully removed.

VARIANT_FALSE (false)

The attribute was not removed.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

IHTMLElement5::removeAttribute always returns S_OK as its HRESULT value. Check the pfSuccess parameter to determine if the attribute is successfully removed.

See also

a
abbr
acronym
address
applet
area
article
aside
b
base
baseFont
bdo
bgSound
big
blockQuote
body
br
button
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
menu
nav
nextID
noBR
noFrames
noScript
object
ol
option
p
plainText
pre
q
rt
ruby
s
samp
script
section
select
small
span
strike
strong
style
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
title
tr
tt
u
ul
var
wbr
xml
xmp
Reference
IHTMLElement5::getAttribute
IHTMLElement5::hasAttribute
IHTMLElement6::setAttributeNode
Conceptual
Attribute Differences in Internet Explorer 8

 

 

Community Additions

ADD
Show:
© 2014 Microsoft