The removeAttribute Method


The removeAttribute Method

As you can guess from its name , the removeAttribute method enables you to remove an attribute from an element. You can see the support for this method in Table 6.36.

Table 6.36. The removeAttribute Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

removeAttribute( attribute , [, case ])

                   
       

x

   

x

x

x

x

 

Returns: See text

Here, attribute is the name of the attribute you want to remove when you invoke this method on an element object, and if the case argument is present and set to true, the browser will search for that attribute in a case-sensitive way. The Internet Explorer returns true if the attribute was removed, and false otherwise . The Netscape Navigator version of this method does not return any value.



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net