www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Methods
 createAttribute Method
createAttribute Method

Creates an attribute object with a specified name.

Syntax

oAttribute = document.createAttribute(sName)

Parameters

sName Required. A String that sets the attribute object's name.

Return Value

Returns a reference to the new attribute object.

Remarks

createAttribute was introduced in Microsoft Internet Explorer 6.

This method will fail if the sName parameter value contains invalid (non-Unicode Transformation Format (UTF)-16) characters.

Standards Information

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

document
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG