In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail what the return value of removeattribute is. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
The removeAttribute () method deletes the specified property. If the document type declaration (DTD) sets the default value for the specified property, the next call to the getAttribute () method will return that default value. Actions that delete attributes that do not exist or that are not set but have default values are ignored.
Introduction to removeAttribute ()
RemoveAttribute version: DOM1 returned value: yes
Syntax:
BSuccess=object.removeAttribute (sName,iCaseSensitive)
Parameters:
SName:? Required. String (String). Specifies the attribute to be removed.
ICaseSensitive:? Optional. Integer value (Integer). Specifies whether to locate the property using a case-sensitive search. The default value is 1. Indicates that the attribute to be deleted is determined strictly according to the case of each letter of the sName. In this way, if the object has multiple properties with the same name but different letter case, the properties obtained by this method may be different on different platforms.
RemoveAttribute () returns a value
BSuccess:? Boolean value (Boolean). False | truefalse:? The attribute was not deleted successfully.
True:? The property was successfully deleted.
Description:
Removes the specified property from the object.
If the object has more than one property with the same name but different case, and the iCaseSensitive parameter is set to 0, only the last one created will be deleted. And the rest will be ignored.
When you delete the CLASS property using this method, you need to specify the sName parameter as className. This is the DHTML property corresponding to the CLASS attribute. RemoveAttribute can only delete attributes that have been explicitly set by setAttribute. If deleted tags are not allowed in html, deletion will throw a DOMException exception. If the document specifies a default value for the attribute, removeAttribute just restores it to the default value.
For an INPUT object, its TYPE property cannot be deleted.
This method can only be used by events established from the HTML component.
RemoveAttribute version: DHTMLObjectModel returned value: none
Syntax:
ScriptingObject.removeAttribute (sAttrName)
Parameters:
SAttrName:? Required. String (String). Specifies the name of the persistence property.
Return value:
None
Removes the specified property from the object.
SAttrName is not case-sensitive.
The id attribute is required for userData and saveSnapshot behaviors. The id attribute is not required for saveHistory and saveFavorite behaviors, but is provided to improve performance, so it is recommended.
This method takes precedence over the removeAttribute method of (override) DHTML.
This is the end of the article on "what is the return value of removeattribute". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 252
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.