This topic has not yet been rated - Rate this topic

hasAttributes method

[This documentation is preliminary and is subject to change.]

Determines whether one or more attributes exist for the object.

Internet Explorer 8

Syntax

object.hasAttributes()

Standards information

There are no standards that apply here.

Parameters

pfHasAttribute [out, retval]

Type: VARIANT_BOOL

VARIANT_FALSE (false)

The element does not define any attributes.

VARIANT_TRUE (true)

The element defines one or more attributes.

Return value

Type: HRESULT

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

Type: BooleanVARIANT_FALSEfalse

The element does not define any attributes.

VARIANT_TRUEtrue

The element defines one or more attributes.

Remarks

The hasAttributes method determines whether the object has any attributes at all. The hasAttribute method tests for the existence of a specified attribute.

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=file
input type=hidden
input type=image
input type=password
input type=radio
input type=reset
input type=submit
input type=text
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
getAttribute
hasAttribute

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ