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.
Method
NS2
NS3
NS4
NS6
IE3a
IE3b
IE4
IE5
IE5.5
IE6
clearAttributes()
x
No return value