Creates an attribute object爓ith a specified name.
dhtml语法
oattribute = document.createattribute(sname)
parameters
sName |
Required.
String that sets the attribute object's name. |
return value
returns a reference to the new attribute object.
Remarks
This method will fail if the sName
parameter value contains invalid (non Unicode transformation format (UTF)-16) characters .
是否符合公共标准
This method is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To