Easy Tutorial
❮ Event Key Key Jsref Positive Infinity ❯

HTML DOM removeNamedItem() Method

Attributes Object

Example

Remove the type attribute of a button:

Before removing the attribute:

After removing the attribute:


Definition and Usage

The removeNamedItem() method removes the specified node.


Browser Support

All major browsers support the removeNamedItem() method.

Note: In Internet Explorer 8 and earlier versions, when using the removeNamedItem() method to remove an attribute, the method cannot delete the attribute but can return its value.


Syntax

Parameters

Parameter Type Description
nodename String Required. The name of the node you want to remove from the node list.

Return Value

Type Description
Node Object The removed node

Technical Details

| DOM Version | Core Level 1 | | --- | --- |


Attributes Object

❮ Event Key Key Jsref Positive Infinity ❯