最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

specified Property

Internet Development Index

Retrieves whether an attribute has been specified.

Syntax

[ bSpecified = ] attribute.specified

Possible Values

bSpecifiedBoolean that receives one of the following values:
trueAttribute is specified.
falseAttribute is not specified.

The property is read-only. The property has no default value.

Remarks

An attribute is specified if it is set through HTML or script.

Example

This example uses the specified property to determine the attributes set for an object. The function checks each attribute, and lists all of the attributes of the object and the value of each attribute. In addition, each attribute that is set is displayed.

<SCRIPT>
function fnFindSpecified(){
var oAttributes=oList.attributes;
alert(oAttributes(0).nodeName);
for(var i=0;i<oAttributes.length;i++){
var oNode=document.createElement("LI");
var oNodeValue=document.createTextNode(i + " "
+ oAttributes(i).nodeName + " = "
+ oAttributes(i).nodeValue);
oList.appendChild(oNode);
oNode.appendChild(oNodeValue);
if(oAttributes(i).nodeValue!=null){
alert(oAttributes(i).nodeName
+ " specified: " + oAttributes(i).specified);
}
}
}
</SCRIPT>
<UL ID = oList onclick = "fnFindSpecified()">
<LI>Click to Find Specified Attributes
</UL>

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

attribute

See Also

About the W3C Document Object Model
石景山区| 徐州市| 丘北县| 墨脱县| 眉山市| 喀喇沁旗| 宁乡县| 常州市| 盖州市| 湛江市| 南澳县| 东兰县| 根河市| 新化县| 新和县| 镇雄县| 正宁县| 荔波县| 榆社县| 津市市| 将乐县| 阳曲县| 皮山县| 象州县| 东台市| 潞西市| 清丰县| 左贡县| 绥化市| 紫阳县| 阿鲁科尔沁旗| 亚东县| 乌鲁木齐市| 昌都县| 印江| 特克斯县| 洛阳市| 青州市| 崇阳县| 天峨县| 崇文区|