Determines whether one or more attributes exist for the object.
Syntax
object.hasAttributes(pfHasAttribute)Parameters
This method has no parameters.
Return value
Type: Boolean
falseThe element does not define any attributes.
trueThe element defines one or more attributes.
Standards information
There are no standards that apply here.
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
- address
- area
- article
- aside
- b
- base
- bdo
- blockQuote
- body
- br
- button
- caption
- cite
- code
- col
- colGroup
- comment
- custom
- dd
- del
- div
- dl
- dt
- em
- embed
- fieldSet
- figcaption
- figure
- footer
- form
- 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
- kbd
- label
- legend
- li
- link
- map
- mark
- nav
- object
- ol
- option
- p
- pre
- q
- rt
- ruby
- s
- samp
- script
- section
- select
- small
- span
- strong
- style
- sub
- sup
- table
- tBody
- td
- textArea
- tFoot
- th
- tHead
- title
- tr
- u
- ul
- var
- Reference
- getAttribute
- hasAttribute
Build date: 11/28/2012