1 out of 2 rated this helpful - Rate this topic

createAttribute method

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

Creates an attribute object with a specified name.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4

Syntax

var ppattribute = document.createAttribute(bstrattrName);

Standards information

Parameters

bstrattrName [in]
C++A String that sets the name property.
JavaScriptA String that sets the attribute object's name.
ppattribute [out, retval]
C++A pointer variable that receives an IHTMLDOMAttribute2 pointer.
JavaScriptReturns 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

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