.gif)
Note: This documentation is preliminary and is subject to change.
Removes the given attribute from the object.
Syntax
|
bSuccess = object.removeAttribute(sName, iCaseSensitive) |
Parameters
| sName |
Required.
String that specifies the attribute name. |
| iCaseSensitive |
Required.
Integer that specifies whether to use a case-sensitive search to locate the attribute.| 0 | Default. The search is case-insensitive. | 1 | The search is case-sensitive. |
|
Return Value
Boolean. Returns one of the following possible values:
true | The attribute was successfully removed. |
false | The attribute was not removed. |
Remarks
If two or more attributes have the same name—differing only in uppercase and lowercase letters—and iCaseSensitive
is set to 0, this method removes only the last attribute to be created with this name. All other attributes of the same name are ignored.
When removing the CLASS attribute using this method, specify the sName
to be "className", which is the corresponding Dynamic HTML (DHTML) property.
This method is used only by events created from HTML Components.
Standards Information
This method is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1
.
Applies To
|
A,
ABBR,
ACRONYM,
ADDRESS,
APPLET,
AREA,
B,
BASE,
BASEFONT,
BDO,
BGSOUND,
BIG,
BLOCKQUOTE,
BODY,
BR,
BUTTON,
CAPTION,
CENTER,
CITE,
CODE,
COL,
COLGROUP,
COMMENT,
CUSTOM,
DD,
DEL,
DFN,
DIR,
DIV,
DL,
DT,
EM,
EMBED,
FIELDSET,
FONT,
FORM,
FRAME,
FRAMESET,
HEAD,
hn,
HR,
HTML,
I,
IFRAME,
IMG,
INPUT type=button,
INPUT type=checkbox,
INPUT type=file,
INPUT type=hidden,
INPUT type=image,
INPUT type=password,
INPUT type=radio,
INPUT type=reset,
INPUT type=submit,
INPUT type=text,
INS,
ISINDEX,
KBD,
LABEL,
LEGEND,
LI,
LINK,
LISTING,
MAP,
MARQUEE,
MENU,
nextID,
NOBR,
NOFRAMES,
NOSCRIPT,
OBJECT,
OL,
OPTION,
P,
PLAINTEXT,
PRE,
Q,
RT,
RUBY,
S,
SAMP,
SCRIPT,
SELECT,
SMALL,
SPAN,
STRIKE,
STRONG,
style,
SUB,
SUP,
TABLE,
TBODY,
TD,
TEXTAREA,
TFOOT,
TH,
THEAD,
TITLE,
TR,
TT,
U,
UL,
VAR,
WBR,
XML,
XMP |
See Also
getAttribute, hasAttribute, setAttributeNode