www.fgks.org   »   [go: up one dir, main page]

removeAttribute Method
New for Windows Internet Explorer 8
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.
0Default. The search is case-insensitive.
1The search is case-sensitive.

Return Value

Boolean. Returns one of the following possible values:

trueThe attribute was successfully removed.
falseThe 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.

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

Development Tools and Languages
Mobile and Embedded Development
.NET Development
Office Development
Open Protocol Specifications
Servers and Enterprise Development
Web Development
Win32 and COM Development
MSDN Library Archive

MSDN Library