Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Removes an attribute specified with the name property from an element using the attributes collection.
Syntax
newretNode = attributes.removeNamedItem( sName )Parameters
sName | Required. String that specifies the name of an attribute to remove. |
Return Value
Returns an attribute removed from the document if successful, otherwise null.
Remarks
An attribute that is removed with this method reverts to the default value of the attribute when applicable.
Example
The following example shows how to use the this method to remove an attribute from an element.
<HTML>
Standards Information
This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
|
attributes |
Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |