Determines whether an attribute that has the specified namespace and name exists.
![]() |
Syntax
object.hasAttributeNS(pvarNS, name)Parameters
- pvarNS [in]
-
Type: Variant
The namespace URI that defines the attribute name.
- name [in]
-
Type: String
A String value that specifies the name of the attribute.
Return value
Type: Boolean
| Return value | Description |
|---|---|
|
The specified attribute does not exist. |
|
The specified attribute exists. |
Standards information
See also
- a
- abbr
- address
- area
- article
- aside
- audio
- b
- base
- bdo
- blockQuote
- body
- br
- button
- canvas
- 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
- media
- meta
- nav
- object
- ol
- optGroup
- option
- p
- param
- pre
- q
- rt
- ruby
- s
- samp
- script
- section
- select
- small
- source
- span
- strong
- style
- sub
- sup
- table
- tBody
- td
- textArea
- tFoot
- th
- tHead
- title
- tr
- u
- ul
- var
- video
- hasAttribute
Build date: 11/28/2012
