Sets an attribute object as part of the object.
![]() |
Syntax
object.setAttributeNodeNS(pattr)Parameters
- pattr [in]
-
Type: IHTMLDOMAttribute
The attribute object to assign.
Return value
Type: IHTMLDOMAttribute
Returns a reference to a replaced attribute object or null if no attribute was replaced.Standards information
Remarks
If the object already contains an attribute with the same name, the new attribute replaces the original attribute.
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
- setAttributeNode
Build date: 11/28/2012
