Home | Top | Web development | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


removeAttribute Method

Removes the given attribute from the object .

Syntax

bSuccess = object.removeAttribute( sName [ , iCaseSensitive ] )

Parameters

sName Required. String  that specifies the attribute name.
iCaseSensitive Optional. Integer  that specifies whether to use a case-sensitive search to locate the attribute. By default, this value is set to 1 to indicate that the uppercase and lowercase letters in the specified sName parameter must exactly match those in the attribute name. If there are multiple attributes specified with different case sensitivity, the attribute returned might vary across platforms.

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

Platform Version
Win16: 4.0
Win32: 4.0
Windows CE: 4.0
Unix: 4.0
Mac: 4.0
 
A , ADDRESS , APPLET , AREA , B , BASE , BASEFONT , BGSOUND , BIG , BLOCKQUOTE , BODY , BR , BUTTON , CAPTION , CENTER , CITE , CODE , COL , COLGROUP , COMMENT , CUSTOM , DD , 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 , KBD , LABEL , LEGEND , LI , LINK , LISTING , MAP , MARQUEE , MENU , META , nextID , NOBR , OBJECT , OL , OPTION , P , PLAINTEXT , PRE , runtimeStyle , 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
Home | Top | Web development | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.