Inside JavaScript

The clearAttributes Method

The clearAttributes method deletes all attributes from an HTML element except the NAME and ID attributes. You can see the support for this method in Table 6.11.

Table 6.11. The clearAttributes Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

clearAttributes()

             

x

x

x

 

No return value

Категории