Contents Index Topic Contents | ||
Previous Topic: remove Next Topic: replace |
removeAttribute
Description
Removes the given attribute from the element.
Syntax
Boolean = object.removeAttribute(attrName [, caseSensitive])
Parameter Description attrName String specifying the name of the attribute. caseSensitive Optional. Boolean value specifying whether to use a case-sensitive search to locate the attribute. If TRUE, the uppercase and lowercase letters in attrName must match exactly those in the attribute name. By default, this parameter is TRUE. If there are multiple attributes specified with different case sensitivity, the attribute returned might vary across platforms. Return Value
Returns TRUE if successful, or FALSE otherwise.
Remarks
If two or more attributes have the same name (differing only in uppercase and lowercase letters) and caseSensitive is FALSE, this method removes only the last attribute (the last to be created with this name). All other attributes of the same name are ignored.
Applies To
A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IFRAME, IMG, INPUT, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, META, NEXTID, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, 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, XMP, style
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.