createAttribute method
[This documentation is preliminary and is subject to change.]
Creates an attribute object with a specified name.
![]() |
Syntax
var ppattribute = document.createAttribute(bstrattrName);Standards information
Parameters
- bstrattrName [in]
-
C++ A String that sets the name property. JavaScript A String that sets the attribute object's name. - ppattribute [out, retval]
-
C++ A pointer variable that receives an IHTMLDOMAttribute2 pointer. JavaScript Returns a reference to the new attribute object.
Return value
Type: ObjectReturns a reference to the new attribute object.A pointer variable that receives an IHTMLDOMAttribute2 pointer.Remarks
This method will fail if the bstrattrName parameter value contains invalid (non-Unicode Transformation Format (UTF)-16) characters.
createAttribute was introduced in Microsoft Internet Explorer 6.
Build date: 2/14/2012
