javascript Element removeAttribute( )
@March 15, 2008, 1:22 a.m.
removeAttribute( ) | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 |
removeAttribute("attributeName") removeAttribute("attributeName"[, caseSensitivity]) | |
Removes the named attribute from the current element. An IE 4 requirement that limited attribute removal to attributes that had been added with the setAttribute( ) method is not applicable in IE 5 and later or Netscape 6. Removing an attribute does not change the source code when viewed through the browser, but does affect how the browser renders the element. The attribute value or node is also no longer available after removal. |
|
Parameters | |
|
|
Returned Value | |
In IE, Boolean true if successful; false if the attribute doesn't exist. No returned value in Netscape 6 (or W3C DOM specification). |
Powered by Linode.